summaryrefslogtreecommitdiff
path: root/drivers/thermal/imx_sc_thermal.c
diff options
context:
space:
mode:
authorLeonard Crestez <leonard.crestez@nxp.com>2018-06-11 18:41:46 +0300
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit79be2cf388c8cb60896ab3546e2e259e06509441 (patch)
treee7dba7932b87986de6b9286a0ea91aa35e5c9109 /drivers/thermal/imx_sc_thermal.c
parent9d83358f9163eeb8a17d6d5df630819d15e00573 (diff)
MLK-18569 thermal: imx_sc: Fix interpreting tenths as milicelsius
Linux expects milicelsius 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/imx_sc_thermal.c')
-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;
}