]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (gsc-hwmon) Scale temperature to millidegrees
authorTim Harvey <tharvey@gateworks.com>
Thu, 27 Aug 2020 17:20:24 +0000 (10:20 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 27 Aug 2020 19:47:55 +0000 (12:47 -0700)
commit7d77e51d643d1fbf1ec2e18b021d7e015e958c64
treea34979211348cd03989a4c82d5f2a404d177b8d4
parent5851e651d33543e6bc0633c5c578334531e0a959
hwmon: (gsc-hwmon) Scale temperature to millidegrees

The GSC registers report temperature in decidegrees celcius so we
need to scale it to represent the hwmon sysfs API of millidegrees.

Cc: stable@vger.kernel.org
Fixes: 8080ab00fcdb ("hwmon: Add Gateworks System Controller support")
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Link: https://lore.kernel.org/r/1598548824-16898-1-git-send-email-tharvey@gateworks.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/gsc-hwmon.c