commit | beb845f1234a79472416789739ed57900584e98c | [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 11 12:32:50 2017 +0200 |
tree | 962c27acd5acb2a828cdacc50a79354083863212 | |
parent | 8a9dfa81c6c29458697b936d7ab3215ac4fba2d6 [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>