]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitc15ade65788b70797c947f7de3e049e6a23f407f
treecc19185bd91f520046864cf3725e4d2da0ae590b
parentb943c460ff8556a193b28e2145b513f8b978e869
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 69fc1feba2d5856ff74dedb6ae9d8c490210825c
("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