| commit | 8dcc66ad379ec0642fb281c45ccfd7d2d366e53f | [log] [tgz] |
|---|---|---|
| author | Guenter Roeck <linux@roeck-us.net> | Sat Oct 18 06:04:57 2025 -0700 |
| committer | Guenter Roeck <linux@roeck-us.net> | Sun Oct 19 18:56:14 2025 -0700 |
| tree | 75080893c81a3c5c77b07b6bc1d2745fac486c2c | |
| parent | a09a5aa8bf258ddc99a22c30f17fe304b96b5350 [diff] |
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: a0ac418c6007c ("hwmon: (sht3x) convert some of sysfs interface to hwmon")
Cc: JuenKit Yip <JuenKit_Yip@hotmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>