watchdog: bcm6345: callback start use tick instead of ms
authorPhilippe Reynes <[email protected]>
Fri, 3 May 2019 17:43:06 +0000 (19:43 +0200)
committerTom Rini <[email protected]>
Sat, 18 May 2019 16:31:58 +0000 (12:31 -0400)
commitc411adbdd0f2ff0e1dd35342c843edd3afa7c15b
treec9b7c9f9660ddc25687275b584baaf02b600117c
parent3eaf6dcd9362b56e3217559401287dd8fa35b5b2
watchdog: bcm6345: callback start use tick instead of ms

The function bcm6345_wdt_start use the argument timeout
as tick but it should be used as milliseconds.

A clock is added as requirement for this driver.
The frequency of the clock is then used to convert the
millisecond to ticks in the function bcm6345_wdt_start.

Signed-off-by: Philippe Reynes <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
drivers/watchdog/bcm6345_wdt.c