]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (pmbus) Increase attribute name size
authorGuenter Roeck <guenter.roeck@ericsson.com>
Sat, 9 Jul 2011 15:58:49 +0000 (08:58 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 15 Jul 2011 15:10:18 +0000 (08:10 -0700)
commit1ef2580df4418d8a9ad6eacb8bc9bb4260ecfcb8
tree7617bd74c0b48c1e565cd01f4c1d063eb15a9ed6
parent87e7b18aadbb5524a96b97139537a0e697ee05c1
hwmon: (pmbus) Increase attribute name size

Some hwmon sysfs attributes have a length of 20 bytes (plus terminating 0).
I2C_NAME_SIZE is defined as 20 and thus can not be used to define the length
of hwmon sysfs attributes. Replace it with PMBUS_NAME_SIZE, set to 24.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/pmbus/pmbus_core.c