]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
watchdog: core: dt: add support for the timeout-sec dt property
authorFabio Porcedda <fabio.porcedda@gmail.com>
Tue, 8 Jan 2013 10:04:10 +0000 (11:04 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 1 Mar 2013 11:48:36 +0000 (12:48 +0100)
commit3048253ed957fc6cdc34599178408559aa1e0062
tree2e8fd94c3d64899dc4a48912f7ece62721047c68
parente3e83d0001a77cdb337be9170e58b55488835ba0
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>
Documentation/watchdog/watchdog-kernel-api.txt
drivers/watchdog/watchdog_core.c
drivers/watchdog/watchdog_dev.c
include/linux/watchdog.h