[U-Boot] [PATCH 2/2] thermal: imx: fix calculation

Stefano Babic sbabic at denx.de
Thu May 11 11:24:29 UTC 2017


On 18/04/2017 14:41, Peng Fan wrote:
> Fix calculation. do_div can not handle negative values.
> Use div_s64_rem to handle the calculation.
> 
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> Cc: Stefano Babic <sbabic at denx.de>
> ---

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic




-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list