]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (adm1021) Strengthen chip detection for ADM1021, LM84 and MAX1617
authorGuenter Roeck <linux@roeck-us.net>
Wed, 5 Jun 2013 21:09:30 +0000 (14:09 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 7 Jun 2013 19:29:31 +0000 (12:29 -0700)
commit68266b544972546749b26df90c7780f61fcc5900
tree6ead7b9614138ff58d607b40f48835adb3855609
parentc8ee1052d08c618e2b5993b5619124af3d2e89ab
hwmon: (adm1021) Strengthen chip detection for ADM1021, LM84 and MAX1617

On a system with both MAX1617 and JC42 sensors, JC42 sensors can be misdetected
as LM84. Strengthen detection sufficiently enough to avoid this misdetection.
Also improve detection for ADM1021.

Modeled after chip detection code in sensors-detect command.

Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/adm1021.c