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

2017-05-11 Thread Stefano Babic
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 > Cc: Stefano Babic > --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic --

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

2017-04-18 Thread Peng Fan
Fix calculation. do_div can not handle negative values. Use div_s64_rem to handle the calculation. Signed-off-by: Peng Fan Cc: Stefano Babic --- drivers/thermal/imx_thermal.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/imx_thermal.c b/drivers/t