]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jul 2023 17:39:40 +0000 (19:39 +0200)
commit10ee3cd04dcf7600f7a78287aeab0a314032bf31
tree4ec550d65ef3953260b4e97ff7747d9d12be8438
parent9e34ad4eef07e27a467e82fc143b7b886f9bc456
hwmon: (gsc-hwmon) fix fan pwm temperature scaling

[ 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>
drivers/hwmon/gsc-hwmon.c