summaryrefslogtreecommitdiff
path: root/drivers/thermal
diff options
context:
space:
mode:
authorLeonard Crestez <leonard.crestez@nxp.com>2018-06-11 18:41:46 +0300
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:32:11 +0800
commitae840326c584934457197100896543593f6652ba (patch)
tree14c35d7926ad5e08ef20e135393c9308885dbbf9 /drivers/thermal
parent94fa3187d6d5cff696b6c88487444164e6dc0590 (diff)
MLK-18569 thermal: imx_sc: Fix interpreting tenths as millicelsius
Linux expects millicelsius but tenths are handled incorrectly. Fixes: 10a2548b8b60 ("MLK-14972-02 driver: thermal: Add i.MX8QM/QXP thermal support") Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com> Acked-by: Anson Huang <anson.huang@nxp.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/imx_sc_thermal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/imx_sc_thermal.c b/drivers/thermal/imx_sc_thermal.c
index 9b0ea8dc4007..931fa7c8d419 100644
--- a/drivers/thermal/imx_sc_thermal.c
+++ b/drivers/thermal/imx_sc_thermal.c
@@ -77,7 +77,7 @@ static int imx_sc_tsens_get_temp(void *data, int *temp)
return -EINVAL;
}
}
- *temp = celsius * 1000 + tenths;
+ *temp = celsius * 1000 + tenths * 100;
return 0;
}