]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit189d3dc1f6fa8429eeea0478eef66a5179167ad8
tree392bfc7218b33f57d10ab85d11fada20d29acc51
parentc9bb234758dc6644e89d7cb1c7a0919607d265c1
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