diff options
Diffstat (limited to 'include/watchdog.h')
-rw-r--r-- | include/watchdog.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/watchdog.h b/include/watchdog.h index 81414ef8ec..4d755a5a79 100644 --- a/include/watchdog.h +++ b/include/watchdog.h @@ -13,6 +13,8 @@ enum wdog_hw_runnning { WDOG_HW_NOT_RUNNING = PARAM_TRISTATE_FALSE }; +struct device_node; + struct watchdog { int (*set_timeout)(struct watchdog *, unsigned); const char *name; @@ -44,6 +46,7 @@ int watchdog_register(struct watchdog *); int watchdog_deregister(struct watchdog *); struct watchdog *watchdog_get_default(void); struct watchdog *watchdog_get_by_name(const char *name); +int watchdog_get_alias_id_from(struct watchdog *, struct device_node *); int watchdog_set_timeout(struct watchdog*, unsigned); int watchdog_inhibit_all(void); #else @@ -76,6 +79,11 @@ static inline int watchdog_inhibit_all(void) { return -ENOSYS; } + +static inline int watchdog_get_alias_id_from(struct watchdog *wd, struct device_node *np) +{ + return -ENOSYS; +} #endif #define WATCHDOG_DEFAULT_PRIORITY 100 |