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)
commit2bd05bf4d2a5807dcc1c52788b842827e5ef0ee9
tree127e69fe3152b4ac371983c63a28bffeef88ee82
parente0455e380b5bdf8dff7c8e29423d2446d9f59040
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