]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (adt7475) Change update functions to add error handling
authorTokunori Ikegami <ikegami@allied-telesis.co.jp>
Wed, 8 Aug 2018 01:32:18 +0000 (10:32 +0900)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 10 Aug 2018 16:13:01 +0000 (09:13 -0700)
commiteb659a5d01ffac2c9f2122cb811d3b443f8ae3e0
treebf2011d8695e1155a60cda04a6f3e21614950954
parent0c420560a8d8c37cef131bbc450bf267554af2e3
hwmon: (adt7475) Change update functions to add error handling

I2C SMBus sometimes returns error codes.
In the error case, measurement values are updated incorrectly.
The sensor application then generates warning log messages and SNMP traps.
To prevent this, add error handling into the update functions.

Signed-off-by: Tokunori Ikegami <ikegami@allied-telesis.co.jp>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>
[groeck: Update description]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adt7475.c