]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (pmbus/adm1266) include adapter number in GPIO line label
authorAbdurrahman Hussain <abdurrahman@nexthop.ai>
Tue, 12 May 2026 18:56:28 +0000 (11:56 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 21 May 2026 13:58:01 +0000 (06:58 -0700)
commitb0ddda571d15528e6caee7090beff4a66dfdb1a2
tree0ef32bbefb75371149348a42305f14a1398d69ff
parent487566cb1ccdf3756fdd7bf8d875e612ff3169bb
hwmon: (pmbus/adm1266) include adapter number in GPIO line label

Platforms that fit more than one ADM1266 on different I2C buses at
the same 7-bit slave address (a common shelf-management pattern,
e.g. one device per power domain) end up with duplicate GPIO line
labels because the existing format only includes the slave address.
Including the adapter number disambiguates them.

The adapter number is formatted as decimal to match the i2c-N
convention used elsewhere in Linux (sysfs paths, dev nodes); the
slave address keeps its conventional hexadecimal form.

The label is purely informational (visible via gpioinfo and the
gpiochip /sys/class/gpio name); no DT or ABI consumer parses it.

Fixes: d98dfad35c38c ("hwmon: (pmbus/adm1266) Add support for GPIOs")
Signed-off-by: Abdurrahman Hussain <abdurrahman@nexthop.ai>
Link: https://lore.kernel.org/r/20260512-adm1266-v3-5-a81a479b0bb0@nexthop.ai
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/adm1266.c