projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f21431f
)
thermal: imx_sc_thermal: Fix incorrect data type
author
Anson Huang
<Anson.Huang@nxp.com>
Thu, 19 Mar 2020 08:26:20 +0000
(16:26 +0800)
committer
Daniel Lezcano
<daniel.lezcano@linaro.org>
Mon, 23 Mar 2020 14:20:47 +0000
(15:20 +0100)
The temperature value passed from SCU could be negative value,
the data type should be signed instead of unsigned.
Fixes:
e20db70dba1c
("thermal: imx_sc: add i.MX system controller thermal support")
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link:
https://lore.kernel.org/r/1584606380-9972-1-git-send-email-Anson.Huang@nxp.com
drivers/thermal/imx_sc_thermal.c
patch
|
blob
|
history
diff --git
a/drivers/thermal/imx_sc_thermal.c
b/drivers/thermal/imx_sc_thermal.c
index
dbb277a
..
a8723b1
100644
(file)
--- a/
drivers/thermal/imx_sc_thermal.c
+++ b/
drivers/thermal/imx_sc_thermal.c
@@
-30,8
+30,8
@@
struct req_get_temp {
} __packed __aligned(4);
struct resp_get_temp {
-
u
16 celsius;
-
u
8 tenths;
+
s
16 celsius;
+
s
8 tenths;
} __packed __aligned(4);
struct imx_sc_msg_misc_get_temp {