hwmon: (gsc-hwmon) Scale temperature to millidegrees
authorTim Harvey <tharvey@gateworks.com>
Thu, 27 Aug 2020 17:20:24 +0000 (10:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Sep 2020 09:29:38 +0000 (11:29 +0200)
commit8245d79338b7c86d36323e760d820f0ef63d3369
treedceaf2729ca455e3eb3eecb320e3c92da2e7b8b3
parentfaf428a8d81c8d8eb7b884c7c7b14e3b66431b87
hwmon: (gsc-hwmon) Scale temperature to millidegrees

commit c1ae18d313e24bc7833e1749dd36dba5d47f259c upstream.

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: 3bce5377ef66 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/gsc-hwmon.c