Skip to content

Commit 968ea0d

Browse files
Anson-Huangdlezcano
authored andcommitted
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: e20db70 ("thermal: imx_sc: add i.MX system controller thermal support") Signed-off-by: Anson Huang <[email protected]> Reviewed-by: Amit Kucheria <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f21431f commit 968ea0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/thermal/imx_sc_thermal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ struct req_get_temp {
3030
} __packed __aligned(4);
3131

3232
struct resp_get_temp {
33-
u16 celsius;
34-
u8 tenths;
33+
s16 celsius;
34+
s8 tenths;
3535
} __packed __aligned(4);
3636

3737
struct imx_sc_msg_misc_get_temp {

0 commit comments

Comments
 (0)