diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2019-11-21 09:40:04 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-12-05 09:10:26 +0100 |
commit | aade8d53cf6cccf7958d2c11e5791dfcd85a584f (patch) | |
tree | 6750480db84ad34ccff3b8e2105c8e24bc6ad8fc /include | |
parent | 713a601bde07bb498f99bc6288d0c10ddcbe2e0a (diff) | |
download | barebox-aade8d53cf6cccf7958d2c11e5791dfcd85a584f.tar.gz barebox-aade8d53cf6cccf7958d2c11e5791dfcd85a584f.tar.xz |
watchdog: core: use new dev_add_param_tristate helper for .running param
Previous commit added a dev_add_param_tristate_ro that can be readily
used instead of the enum parameter here. Use it.
This also fixes the issue that running_names had external linkage.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/watchdog.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/watchdog.h b/include/watchdog.h index 5790205a48..9741570ce2 100644 --- a/include/watchdog.h +++ b/include/watchdog.h @@ -15,9 +15,12 @@ #include <poller.h> #include <driver.h> +#include <param.h> enum wdog_hw_runnning { - WDOG_HW_RUNNING_UNSUPPORTED, WDOG_HW_RUNNING, WDOG_HW_NOT_RUNNING + WDOG_HW_RUNNING_UNSUPPORTED = PARAM_TRISTATE_UNKNOWN, + WDOG_HW_RUNNING = PARAM_TRISTATE_TRUE, + WDOG_HW_NOT_RUNNING = PARAM_TRISTATE_FALSE }; struct watchdog { |