hwmon: (lm90) Make SA56004 detection more robust
authorJean Delvare <khali@linux-fr.org>
Sun, 24 Jul 2011 18:36:15 +0000 (20:36 +0200)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 29 Jul 2011 03:16:36 +0000 (20:16 -0700)
commit6d101c588f0fe08ef00f16c1a93762dd5d563df7
tree581cd29ed0235de87d9ca5bd0af17c51fe5e04c2
parenta095f687f1e19c54147bd51f735717508a49e225
hwmon: (lm90) Make SA56004 detection more robust

With a device ID register value of 0, the SA56004 detection is rather
weak. Check several other register too to confirm the detection, as we
do for other supported devices.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Stijn Devriendt <sdevrien@cisco.com>
Cc: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Stijn Devriendt <sdevrien@cisco.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/lm90.c