]> git.dujemihanovic.xyz Git - u-boot.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)
commit6d24dc89f06d57fc4501fc927a765e7db2037e6c
tree57c4b78e1dedf62937c16547e32f54a2bd1fa90e
parent8967ebb65386396790e4c1c8b7c24a139a0f5c41
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