commit | 80512547ba3706679a039ae823bb957af422580e | [log] [tgz] |
---|---|---|
author | Peng Fan <peng.fan@nxp.com> | Tue Apr 18 20:41:53 2017 +0800 |
committer | Stefano Babic <sbabic@denx.de> | Thu May 18 11:23:31 2017 +0200 |
tree | 29b77e17504a404b17529c40a1c24919445c20e6 | |
parent | 4fac41716840cb235a740d4d220f46a545a7632d [diff] |
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>