hwmon: (w83795) Clear intrusion alarm immediately
authorJean Delvare <khali@linux-fr.org>
Mon, 15 Nov 2010 20:38:57 +0000 (21:38 +0100)
committerJean Delvare <khali@endymion.delvare>
Mon, 15 Nov 2010 20:38:57 +0000 (21:38 +0100)
commit793c51d5fdfa76043f1221fdaa022f50146e8386
tree7e6bc3676e24fa1ccadf5b4621f868f7ecff2940
parentcf6b9ea661ef4f20b4a4cba1a232a732339aae2c
hwmon: (w83795) Clear intrusion alarm immediately

When asked to clear the intrusion alarm, do so immediately. We have to
invalidate the cache to make sure the new status will be read. But we
also have to read from the status register once to clear the pending
alarm, as writing to CLR_CHS surprising won't clear it automatically.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/w83795.c