]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Jun 2013 01:16:57 +0000 (02:16 +0100)
commit696a09ee1eaf62178a4e2c75af61048a6acdea5f
tree170f52796eb8f84bf22489a9ebde45e16ed5ed60
parent3c52ce97a62a6b5fcf5b89a67fdb667f52705e29
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: Ben Hutchings <ben@decadent.org.uk>
drivers/hwmon/adm1021.c