]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm90) Fix max6696 alarm handling
authorGuenter Roeck <linux@roeck-us.net>
Fri, 15 Nov 2013 09:40:38 +0000 (10:40 +0100)
committerJean Delvare <khali@endymion.delvare>
Fri, 15 Nov 2013 09:40:38 +0000 (10:40 +0100)
commit5c3c7e3a26efd0079df5681d82c0bc5a4ec148cd
tree6e4579e3a7ea8baca3af19975bc72a983afe2466
parentaeade29d0d840e61f6d1df36c6c5e1c9a1f4f43c
hwmon: (lm90) Fix max6696 alarm handling

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>
Cc: stable@vger.kernel.org
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/lm90.c