hwmon: (tmp421) Strengthen detect function
authorGuenter Roeck <linux@roeck-us.net>
Tue, 22 Apr 2014 23:13:17 +0000 (16:13 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 4 Aug 2014 14:01:37 +0000 (07:01 -0700)
commita63ee9d83b960199ae111ff4e2413fbe328d32fe
tree392bfc7218b33f57d10ab85d11fada20d29acc51
parente47c39b3a8299e2d84d9e3ca5e591bc5055dd1d8
hwmon: (tmp421) Strengthen detect function

Not all supported chips support the entire I2C address range.
Only accept specific chips at the addresses supported by that chip.
Check for invalid values in conversion rate and status registers.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Documentation/hwmon/tmp421
drivers/hwmon/tmp421.c