Commit 968ea0df authored by Anson Huang's avatar Anson Huang Committed by Daniel Lezcano

thermal: imx_sc_thermal: Fix incorrect data type

The temperature value passed from SCU could be negative value,
the data type should be signed instead of unsigned.

Fixes: e20db70d ("thermal: imx_sc: add i.MX system controller thermal support")
Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
Reviewed-by: default avatarAmit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/1584606380-9972-1-git-send-email-Anson.Huang@nxp.com
parent f21431f2
......@@ -30,8 +30,8 @@ struct req_get_temp {
} __packed __aligned(4);
struct resp_get_temp {
u16 celsius;
u8 tenths;
s16 celsius;
s8 tenths;
} __packed __aligned(4);
struct imx_sc_msg_misc_get_temp {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment