]> Git Repo - J-u-boot.git/commit
thermal: imx: fix calculation
authorPeng Fan <[email protected]>
Tue, 18 Apr 2017 12:41:53 +0000 (20:41 +0800)
committerStefano Babic <[email protected]>
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 <[email protected]>
Cc: Stefano Babic <[email protected]>
drivers/thermal/imx_thermal.c
This page took 0.029805 seconds and 4 git commands to generate.