Re: [PATCH] watchdog: asm9260_wdt: don't round closest with get_timeleft

2017-07-19 Thread Guenter Roeck
On 07/17/2017 10:12 AM, Wolfram Sang wrote: We should never return more time left than there actually is. So, switch to a plain divider instead of DIV_ROUND_CLOSEST. Signed-off-by: Wolfram Sang Reviewed-by: Guenter Roeck --- This is

[PATCH] watchdog: asm9260_wdt: don't round closest with get_timeleft

2017-07-17 Thread Wolfram Sang
We should never return more time left than there actually is. So, switch to a plain divider instead of DIV_ROUND_CLOSEST. Signed-off-by: Wolfram Sang --- This is similar to a patch for the renesas-rwdt[1]. I think it makes sense to remove this pattern from the