summaryrefslogtreecommitdiff
path: root/Documentation/watchdog/watchdog-kernel-api.rst
diff options
context:
space:
mode:
authorBumsik Kim <kbumsik@gmail.com>2020-04-03 12:15:07 +0900
committerJonathan Corbet <corbet@lwn.net>2020-04-20 17:11:36 -0600
commit4951d27b099bd24f87a093f67d91618742bd3a65 (patch)
tree94cb59d26f9f893236ec26078170a138ff103993 /Documentation/watchdog/watchdog-kernel-api.rst
parentfc965497d5b3204d7b726c27fefe92d2e885f994 (diff)
watchdog: clarify that stop() is optional
The commit d0684c8a9354 ("watchdog: Make stop function optional") made stop function not mandatory, but the comments and the doc weren't reflected. Fix it to clarify. Signed-off-by: Bumsik Kim <k.bumsik@gmail.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20200403031507.63487-1-k.bumsik@gmail.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/watchdog/watchdog-kernel-api.rst')
-rw-r--r--Documentation/watchdog/watchdog-kernel-api.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/watchdog/watchdog-kernel-api.rst b/Documentation/watchdog/watchdog-kernel-api.rst
index 864edbe932c1..068a55ee0d4a 100644
--- a/Documentation/watchdog/watchdog-kernel-api.rst
+++ b/Documentation/watchdog/watchdog-kernel-api.rst
@@ -123,8 +123,8 @@ The list of watchdog operations is defined as::
struct module *owner;
/* mandatory operations */
int (*start)(struct watchdog_device *);
- int (*stop)(struct watchdog_device *);
/* optional operations */
+ int (*stop)(struct watchdog_device *);
int (*ping)(struct watchdog_device *);
unsigned int (*status)(struct watchdog_device *);
int (*set_timeout)(struct watchdog_device *, unsigned int);