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
--
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
2 matches
Mail list logo