From: Guenter Roeck Date: Sun, 4 Mar 2012 16:10:57 +0000 (-0800) Subject: hwmon: (pmbus_core) Fix maximum number of POUT alarm attributes X-Git-Tag: v3.0.24~10 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=170e54cfc7d0aec9a9f3cf34cd8df19fc2594305;p=karo-tx-linux.git hwmon: (pmbus_core) Fix maximum number of POUT alarm attributes commit 7cb3c44fb1f7999e4c53b6a52de6bc25da6de079 upstream. There are up to three POUT alarm attributes, not two, since cap_alarm was added. Reported-by: Michele Petracca Signed-off-by: Guenter Roeck Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hwmon/pmbus_core.c b/drivers/hwmon/pmbus_core.c index 8e31a8e2c746..ffa54dd7dbda 100644 --- a/drivers/hwmon/pmbus_core.c +++ b/drivers/hwmon/pmbus_core.c @@ -50,7 +50,8 @@ lcrit_alarm, crit_alarm */ #define PMBUS_IOUT_BOOLEANS_PER_PAGE 3 /* alarm, lcrit_alarm, crit_alarm */ -#define PMBUS_POUT_BOOLEANS_PER_PAGE 2 /* alarm, crit_alarm */ +#define PMBUS_POUT_BOOLEANS_PER_PAGE 3 /* cap_alarm, alarm, crit_alarm + */ #define PMBUS_MAX_BOOLEANS_PER_FAN 2 /* alarm, fault */ #define PMBUS_MAX_BOOLEANS_PER_TEMP 4 /* min_alarm, max_alarm, lcrit_alarm, crit_alarm */