diff options
author | Viresh Kumar <viresh.kumar@st.com> | 2012-03-16 09:14:00 +0100 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-03-27 20:15:37 +0200 |
commit | fd7b673c92731fc6c0b1e999adfd87b6762ee797 (patch) | |
tree | 35fafd733a2846acb1dd7a06cb7078a7fe59086f /Documentation/watchdog/convert_drivers_to_kernel_api.txt | |
parent | 2ca1606359695cc7ce371c7829c4082d9095fc06 (diff) | |
download | kernel_goldelico_gta04-fd7b673c92731fc6c0b1e999adfd87b6762ee797.zip kernel_goldelico_gta04-fd7b673c92731fc6c0b1e999adfd87b6762ee797.tar.gz kernel_goldelico_gta04-fd7b673c92731fc6c0b1e999adfd87b6762ee797.tar.bz2 |
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 'Documentation/watchdog/convert_drivers_to_kernel_api.txt')
-rw-r--r-- | Documentation/watchdog/convert_drivers_to_kernel_api.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/watchdog/convert_drivers_to_kernel_api.txt b/Documentation/watchdog/convert_drivers_to_kernel_api.txt index be8119b..271b885 100644 --- a/Documentation/watchdog/convert_drivers_to_kernel_api.txt +++ b/Documentation/watchdog/convert_drivers_to_kernel_api.txt @@ -59,6 +59,10 @@ Here is a overview of the functions and probably needed actions: WDIOC_GETTIMEOUT: No preparations needed + WDIOC_GETTIMELEFT: + It needs get_timeleft() callback to be defined. Otherwise it + will return EOPNOTSUPP + Other IOCTLs can be served using the ioctl-callback. Note that this is mainly intended for porting old drivers; new drivers should not invent private IOCTLs. Private IOCTLs are processed first. When the callback returns with |