]> git.sur5r.net Git - u-boot/commit
thermal: imx: fix calculation
authorPeng Fan <peng.fan@nxp.com>
Tue, 18 Apr 2017 12:41:53 +0000 (20:41 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 18 May 2017 09:23:31 +0000 (11:23 +0200)
commit80512547ba3706679a039ae823bb957af422580e
tree29b77e17504a404b17529c40a1c24919445c20e6
parent4fac41716840cb235a740d4d220f46a545a7632d
thermal: imx: fix calculation

Fix calculation. do_div can not handle negative values.
Use div_s64_rem to handle the calculation.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
drivers/thermal/imx_thermal.c