]> git.baikalelectronics.ru Git - uboot.git/commit
watchdog: wdt-uclass.c: introduce struct wdt_priv
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Thu, 19 Aug 2021 09:56:56 +0000 (11:56 +0200)
committerStefan Roese <sr@denx.de>
Tue, 31 Aug 2021 10:04:03 +0000 (12:04 +0200)
commit07f67257c662a3632518f6dffc134ade8136bb23
tree57c4b78e1dedf62937c16547e32f54a2bd1fa90e
parent87e7fcb00c05935cb2bd0293cd952b177bac5012
watchdog: wdt-uclass.c: introduce struct wdt_priv

As preparation for having the wdt-uclass provided watchdog_reset()
function handle all DM watchdog devices, and not just the first such,
introduce a uclass-owned struct to hold the reset_period and
next_reset, so these become per-device instead of being static
variables.

No functional change intended.

Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
drivers/watchdog/wdt-uclass.c