]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ad7418) Catch I2C errors
authorBrandon Maier <brandon.maier@rockwellcollins.com>
Thu, 7 Feb 2019 21:50:36 +0000 (15:50 -0600)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 18 Feb 2019 22:23:29 +0000 (14:23 -0800)
commit9618d181fa22156c2a080128b413fd2e56040743
tree8a9f3b8d8434b6c39b61a9b585a3f9da0bd39b24
parent684b2c5e99af7e203fff5e48a3bd3425acff811e
hwmon: (ad7418) Catch I2C errors

If there is an i2c failure, the ad7416 reports its temperature as 0C.
Return an error code so users can properly detect errors.

Signed-off-by: Brandon Maier <brandon.maier@rockwellcollins.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ad7418.c