]> git.baikalelectronics.ru Git - kernel.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>
Thu, 28 Jul 2011 22:31:18 +0000 (15:31 -0700)
commitdf73eef737667ffb12fe59a460a6ebc531b0cc9e
tree127e69fe3152b4ac371983c63a28bffeef88ee82
parentd01b0b47ecd84d3af89844a40543f59890dbc68a
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>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
drivers/hwmon/pmbus/pmbus_core.c