projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85746fe
)
hwmon: (pmbus_core) Fix maximum number of POUT alarm attributes
author
Guenter Roeck
<linux@roeck-us.net>
Sun, 4 Mar 2012 16:10:57 +0000
(08:10 -0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 12 Mar 2012 17:33:00 +0000
(10:33 -0700)
commit
7cb3c44fb1f7999e4c53b6a52de6bc25da6de079
upstream.
There are up to three POUT alarm attributes, not two, since cap_alarm was added.
Reported-by: Michele Petracca <mi.petracca@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/pmbus_core.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/pmbus_core.c
b/drivers/hwmon/pmbus_core.c
index 8e31a8e2c746e8848c7268ab5c8091b966b648b4..ffa54dd7dbdabca339126286a203531a245ba9ea 100644
(file)
--- 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 */