]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
hwmon: (gsc-hwmon) fix fan pwm temperature scaling
authorTim Harvey <tharvey@gateworks.com>
Tue, 6 Jun 2023 15:30:04 +0000 (08:30 -0700)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Mon, 2 Oct 2023 15:19:44 +0000 (17:19 +0200)
commitf49462f07a82d8bde4996ae876a23a0c52e64dde
tree2849b3dd42ab810913ed510708e4faca11abf147
parentbf34c3a22f69e2fcb0057ec5016763981efd870d
hwmon: (gsc-hwmon) fix fan pwm temperature scaling

BugLink: https://bugs.launchpad.net/bugs/2034469
[ Upstream commit a6d80df47ee2c69db99e4f2f8871aa4db154620b ]

The GSC fan pwm temperature register is in centidegrees celcius but the
Linux hwmon convention is to use milidegrees celcius. Fix the scaling.

Fixes: 3bce5377ef66 ("hwmon: Add Gateworks System Controller support")
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Link: https://lore.kernel.org/r/20230606153004.1448086-1-tharvey@gateworks.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/hwmon/gsc-hwmon.c