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
parent
147a7ddcfa
commit
3a6947d9cc
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue