]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hwmon: (sht3x) Fix error handling
authorGuenter Roeck <linux@roeck-us.net>
Sat, 18 Oct 2025 13:04:57 +0000 (06:04 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 20 Oct 2025 01:56:14 +0000 (18:56 -0700)
commit8dcc66ad379ec0642fb281c45ccfd7d2d366e53f
tree75080893c81a3c5c77b07b6bc1d2745fac486c2c
parenta09a5aa8bf258ddc99a22c30f17fe304b96b5350
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>
drivers/hwmon/sht3x.c