]> Git Repo - linux.git/commit
hwmon: (adt7475) Change update functions to add error handling
authorTokunori Ikegami <[email protected]>
Wed, 8 Aug 2018 01:32:18 +0000 (10:32 +0900)
committerGuenter Roeck <[email protected]>
Fri, 10 Aug 2018 16:13:01 +0000 (09:13 -0700)
commit702afead45e15407bea94ccee16b801bbe9db13e
treebf2011d8695e1155a60cda04a6f3e21614950954
parentb36fb17159adad16a724f0d298a5b50269839ead
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 <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Chris Packham <[email protected]>
[groeck: Update description]
Signed-off-by: Guenter Roeck <[email protected]>
drivers/hwmon/adt7475.c
This page took 0.056131 seconds and 4 git commands to generate.