]> git.ipfire.org Git - people/arne_f/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Jun 2013 16:45:01 +0000 (09:45 -0700)
commitfa8defe62cc9791fcc83759d9d27fef0fca921b1
tree7717ae10417e3736f7e6f3a19661312b4a422e3e
parent36247d18978750da120dbded4d23c74bb9468549
hwmon: (adm1021) Strengthen chip detection for ADM1021, LM84 and MAX1617

commit 591bfcfc334a003ba31c0deff03b22e73349939b upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/adm1021.c