From 9ba3943ce613c179740957e85405b4c832323ddb Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Wed, 23 Oct 2019 18:56:00 +0200 Subject: 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 Signed-off-by: Sascha Hauer --- commands/wd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands') diff --git a/commands/wd.c b/commands/wd.c index 26823f869a..f857291f03 100644 --- a/commands/wd.c +++ b/commands/wd.c @@ -34,7 +34,7 @@ static int do_wd(int argc, char *argv[]) } } - rc = watchdog_set_timeout(timeout); + rc = watchdog_set_timeout(watchdog_get_default(), timeout); if (rc < 0) { switch (rc) { case -EINVAL: -- cgit v1.2.3