watchdog: export API to configure watchdogs by name
So far watchdog users could only configure the watchdog with the highest
priority. In preparation for having the wd command configure a watchdog
by name, extend watchdog_set_timeout with a struct watchdog *parameter
and export functions to query default watchdog and to find watchdog by
name.
No functional change.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent c2d1678 commit 9ba3943ce613c179740957e85405b4c832323ddb
@Ahmad Fatoum Ahmad Fatoum authored on 23 Oct 2019
Sascha Hauer committed on 29 Oct 2019
Showing 4 changed files
View
commands/wd.c
View
common/boot.c
View
drivers/watchdog/wd_core.c
View
include/watchdog.h