Skip to content
Commit 702afead authored by Tokunori Ikegami's avatar Tokunori Ikegami Committed by Guenter Roeck
Browse files

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: default avatarTokunori 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: default avatarGuenter Roeck <linux@roeck-us.net>
parent b36fb171
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment