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>
1 parent 1ef7cd0 commit 65a644388e845bde01215bf378d4df2a6a260a6a
@Oleksij Rempel Oleksij Rempel authored on 13 Mar 2018
Sascha Hauer committed on 23 Mar 2018
Showing 2 changed files
View
drivers/watchdog/wd_core.c
View
include/watchdog.h