]> git.baikalelectronics.ru Git - kernel.git/commit
lm85: fix the version check that broke adt7468 probing
authorDarrick J. Wong <djwong@us.ibm.com>
Tue, 10 Mar 2009 19:55:47 +0000 (12:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Mar 2009 22:55:10 +0000 (15:55 -0700)
commitd3eca34a03a2a454e546d5c1bccfdd0edafaaa5a
treecc19185bd91f520046864cf3725e4d2da0ae590b
parentae330f76a9823fd003a23813e2edbaff03478aa6
lm85: fix the version check that broke adt7468 probing

The verstep check in the lm85 driver fails because the upper nibble of
the version register is 0x7, not 0x6, on the adt7468 chip.  Probing of
all adt7468s was broken by 0662dbac48712b9aac440dd0d178bba6d9a1c1c3
("hwmon: (lm85) Rework the device detection"), and this patch fixes
that.  Also add in a missing i2c_device_id that accidentally got dropped
from the original patch.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Cc: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/hwmon/lm85.c