commit | 4922d6e2b6c0d31cd561dce011cd1891d6edaa1f | [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 | 46c8e5391e207276f5ffc32ed861875e1047fabf [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>