hwmon: (pmbus_core) Fix maximum number of POUT alarm attributes
There are up to three POUT alarm attributes, not two, since cap_alarm was added. Reported-by: Michele Petracca <mi.petracca@gmail.com> Cc: stable@vger.kernel.org # 3.0+ [3.0 will need backport] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
4de86126a7
commit
7cb3c44fb1
|
@ -54,7 +54,8 @@
|
||||||
lcrit_alarm, crit_alarm */
|
lcrit_alarm, crit_alarm */
|
||||||
#define PMBUS_IOUT_BOOLEANS_PER_PAGE 3 /* alarm, lcrit_alarm,
|
#define PMBUS_IOUT_BOOLEANS_PER_PAGE 3 /* alarm, lcrit_alarm,
|
||||||
crit_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_FAN 2 /* alarm, fault */
|
||||||
#define PMBUS_MAX_BOOLEANS_PER_TEMP 4 /* min_alarm, max_alarm,
|
#define PMBUS_MAX_BOOLEANS_PER_TEMP 4 /* min_alarm, max_alarm,
|
||||||
lcrit_alarm, crit_alarm */
|
lcrit_alarm, crit_alarm */
|
||||||
|
|
Loading…
Reference in a new issue