Commit 8dcc66ad authored by Guenter Roeck's avatar Guenter Roeck
Browse files

hwmon: (sht3x) Fix error handling



Handling of errors when reading status, temperature, and humidity returns
the error number as negative attribute value. Fix it up by returning
the error as return value.

Fixes: a0ac418c ("hwmon: (sht3x) convert some of sysfs interface to hwmon")
Cc: JuenKit Yip <JuenKit_Yip@hotmail.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent a09a5aa8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment