summaryrefslogtreecommitdiffstats
path: root/include/watchdog.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-08-26 12:05:07 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-08-27 21:37:07 +0200
commit62fe28cf0b06ad526e5ef2fcfd3f02c20cfb0bd8 (patch)
tree3631beaaf390b8baa1219dea4003144e857dab3f /include/watchdog.h
parent8f4cf30903cf6daaed0be1e8911363a3984abf72 (diff)
downloadbarebox-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.h2
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;
};