watchdog: core: dt: add support for the timeout-sec dt property
Add support for watchdog drivers to initialize/set the timeout field of the watchdog_device structure. The timeout field is initialised either with the module timeout parameter value (if valid) or with the timeout-sec dt property (if valid). If both are invalid the initial value is unchanged. Signed-off-by:Fabio Porcedda <fabio.porcedda@gmail.com> Acked-by:
Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by:
Wim Van Sebroeck <wim@iguana.be>
Showing
- Documentation/watchdog/watchdog-kernel-api.txt 13 additions, 1 deletionDocumentation/watchdog/watchdog-kernel-api.txt
- drivers/watchdog/watchdog_core.c 57 additions, 9 deletionsdrivers/watchdog/watchdog_core.c
- drivers/watchdog/watchdog_dev.c 1 addition, 2 deletionsdrivers/watchdog/watchdog_dev.c
- include/linux/watchdog.h 9 additions, 0 deletionsinclude/linux/watchdog.h
Loading
Please register or sign in to comment