hwmon: (lm90) Fix max6696 alarm handling
authorGuenter Roeck <linux@roeck-us.net>
Fri, 15 Nov 2013 09:40:38 +0000 (10:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Nov 2013 19:28:06 +0000 (11:28 -0800)
commit425a81974e54b610d3c1ab174e3ae3a08e3aeb28
tree29a268a51882d57b8a20a9a1b5d14957a32fd122
parent696e67db38df4f921dd9ccfa78904a250b1b85ae
hwmon: (lm90) Fix max6696 alarm handling

commit e41fae2b1ed8c78283d73651cd65be0228c0dd1c upstream.

Bit 2 of status register 2 on MAX6696 (external diode 2 open)
sets ALERT; the bit thus has to be listed in alert_alarms.
Also display a message in the alert handler if the condition
is encountered.

Even though not all overtemperature conditions cause ALERT
to be set, we should not ignore them in the alert handler.
Display messages for all out-of-range conditions.

Reported-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/lm90.c