watchdog: omap_wdt: implement get_timeleft
authorLars Poeschel <poeschel@lemonage.de>
Wed, 17 Jun 2015 08:58:59 +0000 (10:58 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 22 Jun 2015 13:54:35 +0000 (15:54 +0200)
commit452fafed839eb008a8ed9072d63449cb76de617e
tree7960b3c8f0132c4b6f784f23b8c3ca87586062a2
parent7a7cb009dcbae5588d8836cd7b4f7255db2e489b
watchdog: omap_wdt: implement get_timeleft

The omap watchdog hardware is able to read the watchdog timer counter
register. This implements this functionality in the omap_wdt driver, so
one is can read the time until the watchdog will trigger the reset in
seconds using WDIOC_GETTIMELEFT.

Signed-off-by: Lars Poeschel <poeschel@lemonage.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/omap_wdt.c
drivers/watchdog/omap_wdt.h