diff options
author | Viresh Kumar <viresh.kumar@st.com> | 2012-03-16 04:14:00 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-03-27 14:15:37 -0400 |
commit | fd7b673c92731fc6c0b1e999adfd87b6762ee797 (patch) | |
tree | 35fafd733a2846acb1dd7a06cb7078a7fe59086f /include/linux/watchdog.h | |
parent | 2ca1606359695cc7ce371c7829c4082d9095fc06 (diff) |
watchdog: Add support for WDIOC_GETTIMELEFT IOCTL in watchdog core
This patch adds support for WDIOC_GETTIMELEFT IOCTL in watchdog core. So, there
is another function pointer added to struct watchdog_ops, which can be passed by
drivers to support this IOCTL.
Related documentation is updated too.
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'include/linux/watchdog.h')
-rw-r--r-- | include/linux/watchdog.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/watchdog.h b/include/linux/watchdog.h index de75167093b..ac40716b44e 100644 --- a/include/linux/watchdog.h +++ b/include/linux/watchdog.h | |||
@@ -66,6 +66,7 @@ struct watchdog_device; | |||
66 | * @ping: The routine that sends a keepalive ping to the watchdog device. | 66 | * @ping: The routine that sends a keepalive ping to the watchdog device. |
67 | * @status: The routine that shows the status of the watchdog device. | 67 | * @status: The routine that shows the status of the watchdog device. |
68 | * @set_timeout:The routine for setting the watchdog devices timeout value. | 68 | * @set_timeout:The routine for setting the watchdog devices timeout value. |
69 | * @get_timeleft:The routine that get's the time that's left before a reset. | ||
69 | * @ioctl: The routines that handles extra ioctl calls. | 70 | * @ioctl: The routines that handles extra ioctl calls. |
70 | * | 71 | * |
71 | * The watchdog_ops structure contains a list of low-level operations | 72 | * The watchdog_ops structure contains a list of low-level operations |
@@ -82,6 +83,7 @@ struct watchdog_ops { | |||
82 | int (*ping)(struct watchdog_device *); | 83 | int (*ping)(struct watchdog_device *); |
83 | unsigned int (*status)(struct watchdog_device *); | 84 | unsigned int (*status)(struct watchdog_device *); |
84 | int (*set_timeout)(struct watchdog_device *, unsigned int); | 85 | int (*set_timeout)(struct watchdog_device *, unsigned int); |
86 | unsigned int (*get_timeleft)(struct watchdog_device *); | ||
85 | long (*ioctl)(struct watchdog_device *, unsigned int, unsigned long); | 87 | long (*ioctl)(struct watchdog_device *, unsigned int, unsigned long); |
86 | }; | 88 | }; |
87 | 89 | ||