]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (corsair-cpro) Read temperature as a signed value
authorMarius Zachmann <mail@mariuszachmann.de>
Thu, 13 Nov 2025 10:00:23 +0000 (11:00 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 13 Nov 2025 20:23:26 +0000 (12:23 -0800)
commit6ae5101d6f3a8fbecfc7a50af076e1ce890fd62c
tree0f36a06ef95fe06d5ebc57f9e4ccb1d9daf13ad4
parent006f661e024f2f0e89f3b458a3db0b10b657afa5
hwmon: (corsair-cpro) Read temperature as a signed value

Convert temperature to s16 to correctly read negative temperatures.

Signed-off-by: Marius Zachmann <mail@mariuszachmann.de>
Link: https://lore.kernel.org/r/20251113100024.11103-2-mail@mariuszachmann.de
[groeck: Updated subject, coding style]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/corsair-cpro.c