watchdog: move initr_watchdog() to wdt-uclass.c
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Fri, 13 Mar 2020 16:04:57 +0000 (17:04 +0100)
committerStefan Roese <sr@denx.de>
Wed, 15 Apr 2020 06:53:55 +0000 (08:53 +0200)
commitb4d9452c442769e6dc25649ac02db2d5ed5ea0c8
treea49a77dabe7d1f45fcc3abd30afcd594500ed81d
parent21a0bf7f466b8e71ce5ba2c2bcf635d7ab1fc83d
watchdog: move initr_watchdog() to wdt-uclass.c

This function is a bit large for an inline function, and for U-Boot
proper, it is called via a function pointer anyway (in board_r.c), so
cannot be inlined.

It will shortly set a global variable to be used by the
watchdog_reset() function in wdt-uclass.c, so this also allows making
that variable local to wdt-uclass.c.

The WATCHDOG_TIMEOUT_SECS define is not used elsewhere.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/watchdog/wdt-uclass.c
include/wdt.h