diff options
| author | Guenter Roeck <linux@roeck-us.net> | 2025-10-18 06:04:57 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-29 14:08:59 +0100 |
| commit | ea3cca61b7533f55ff7868371bc8504be5e24993 (patch) | |
| tree | d6d196e48dff130f54f920cfac8085260b73b5a9 /include/net/aligned_data.h | |
| parent | 3c5b3dc301ee77f4430e5339791cdff9f1c16677 (diff) | |
hwmon: (sht3x) Fix error handling
[ Upstream commit 8dcc66ad379ec0642fb281c45ccfd7d2d366e53f ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions
