hwmon: (max6642): Better chip detection schema
authorPer Dalén <per.dalen@appeartv.com>
Thu, 26 May 2011 13:08:53 +0000 (09:08 -0400)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Sat, 4 Jun 2011 17:34:28 +0000 (10:34 -0700)
commit942c1a927bf296fd64fd49f04c5a8f66bb14446b
tree58020f9137fd23755a918eca1ad0621109123a80
parentbb9973e4e73f43bd86698483d0c3f7a362ff94ce
hwmon: (max6642): Better chip detection schema

Improve detection of MAX6642 by reading non existing registers (0x04, 0x06
and 0xff). Reading those registers returns the previously read value.

Signed-off-by: Per Dalen <per.dalen@appeartv.com>
[guenter.roeck@ericsson.com: added second set of register reads]
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/max6642.c