diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-08-26 12:05:07 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-08-27 21:37:07 +0200 |
commit | 62fe28cf0b06ad526e5ef2fcfd3f02c20cfb0bd8 (patch) | |
tree | 3631beaaf390b8baa1219dea4003144e857dab3f /include/watchdog.h | |
parent | 8f4cf30903cf6daaed0be1e8911363a3984abf72 (diff) | |
download | barebox-62fe28cf0b06ad526e5ef2fcfd3f02c20cfb0bd8.tar.gz barebox-62fe28cf0b06ad526e5ef2fcfd3f02c20cfb0bd8.tar.xz |
watchdog: Give watchdogs a name
This adds a dev and name member to struct watchdog which helps distinguishing
between different watchdogs. Also add some debugging aids.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/watchdog.h')
-rw-r--r-- | include/watchdog.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/watchdog.h b/include/watchdog.h index a833aeae8c..fd24b5b79e 100644 --- a/include/watchdog.h +++ b/include/watchdog.h @@ -15,6 +15,8 @@ struct watchdog { int (*set_timeout)(struct watchdog *, unsigned); + const char *name; + struct device_d *dev; unsigned int priority; struct list_head list; }; |