]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm73) Make detection less problematic
authorJean Delvare <khali@linux-fr.org>
Fri, 4 Nov 2011 11:00:46 +0000 (12:00 +0100)
committerJean Delvare <khali@endymion.delvare>
Fri, 4 Nov 2011 11:00:46 +0000 (12:00 +0100)
commit98d83b876a19c0787c218aed8170bc90df3b8217
tree9cd9206f65ae126d78ab428272ee8da62e41c4a8
parentdd5c91538aa76e90260183eabade47661275b68a
hwmon: (lm73) Make detection less problematic

Word reads can cause trouble with some I2C devices, so do as much
detection as we can using only byte reads, and only use a word read in
the end to confirm the positive match. Also properly handle read
errors.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: Robert Casanova <robertcasanova@nanometrics.ca>
drivers/hwmon/lm73.c