diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2018-03-13 09:33:25 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-03-23 07:35:24 +0100 |
commit | 65a644388e845bde01215bf378d4df2a6a260a6a (patch) | |
tree | 3ccbaa7637c5991eff52f91b61fa967842282a52 /include/watchdog.h | |
parent | 1ef7cd07a304cbc485329d68ad64a0b83936ce6e (diff) | |
download | barebox-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.h | 1 |
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; }; |