]> git.karo-electronics.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>
Thu, 14 Feb 2013 21:01:54 +0000 (22:01 +0100)
commitd206803d66f2bacb345f75239909d3d2cead2a66
tree5120fd6cf0d5f319c213fa6cb84e715c3ed84087
parenta8eddb8ec8a6edf00350d3ea7fe82f3444c2a5a8
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>
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