hwmon: (lm85) Don't bind to Winbond/Nuvoton WPCD377I
authorJean Delvare <khali@linux-fr.org>
Tue, 15 Sep 2009 15:18:14 +0000 (17:18 +0200)
committerJean Delvare <khali@linux-fr.org>
Tue, 15 Sep 2009 15:18:14 +0000 (17:18 +0200)
commit5cfaf338134605ce8d9272b9c16605bc920d25be
tree405140965ec9aec82cb5f180afa6aefdc4413632
parentafc31875fa5774dbc117f8c62034d77390156edc
hwmon: (lm85) Don't bind to Winbond/Nuvoton WPCD377I

The Winbond/Nuvoton WPCD377I is the reduced version of a Super-I/O
which emulates the National Semiconductor LM96000 hardware monitoring
chips, but without the hardware monitoring part. Instead of plain
disabling the emulation, the vendor left the emulated chip visible,
but all monitored values are always zero. This is rather confusing for
the users. So detect this case and refuse to bind to such fake chips.

This fixes lm-sensors ticket #2182:
http://www.lm-sensors.org/ticket/2182

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/lm85.c