summaryrefslogtreecommitdiffstats
path: root/include/watchdog.h
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2018-03-13 09:33:25 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-03-23 07:35:24 +0100
commit65a644388e845bde01215bf378d4df2a6a260a6a (patch)
tree3ccbaa7637c5991eff52f91b61fa967842282a52 /include/watchdog.h
parent1ef7cd07a304cbc485329d68ad64a0b83936ce6e (diff)
downloadbarebox-65a644388e845bde01215bf378d4df2a6a260a6a.tar.gz
barebox-65a644388e845bde01215bf378d4df2a6a260a6a.tar.xz
watchdog: register watchdog virtual device with short name wdog
the watchdog hwdev is usually named with devicetree schema which is not practical for CLI. On device registration "wdog" will be extended with some index number extracted from devicetree (if awailable) or automatically assigned first available number. End result will be "wdog0" .. etc. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/watchdog.h')
-rw-r--r--include/watchdog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/watchdog.h b/include/watchdog.h
index 848981cc0d..75964178b1 100644
--- a/include/watchdog.h
+++ b/include/watchdog.h
@@ -17,6 +17,7 @@ struct watchdog {
int (*set_timeout)(struct watchdog *, unsigned);
const char *name;
struct device_d *hwdev;
+ struct device_d dev;
unsigned int priority;
struct list_head list;
};