1
0
Fork 0

MLK-23627 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.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Anson Huang 2020-03-19 16:23:34 +08:00
parent 147a7ddcfa
commit 3a6947d9cc
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,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 {