summaryrefslogtreecommitdiff
path: root/Documentation/watchdog/watchdog-api.txt
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2010-04-05 14:31:29 +0400
committerWim Van Sebroeck <wim@iguana.be>2010-04-06 18:23:55 +0400
commitdfc333834cb86805485920dc77ee0f2fbb484462 (patch)
treefe89d56964d20d1584570018896f7131d2f4cea7 /Documentation/watchdog/watchdog-api.txt
parentcf9cf9aed19f529ff313c3e0901ae3b2972eaf4e (diff)
downloadlinux-dfc333834cb86805485920dc77ee0f2fbb484462.tar.xz
[WATCHDOG] doc: Fix use of WDIOC_SETOPTIONS ioctl.
In the watchdog-test program and watchdog-api.txt, pass the values to the WDIOC_SETOPTIONS ioctl as a pointer to an integer containing the values intead of directly in the third ioctl argument. The actual watchdog drivers in drivers/watchdog don't read the options directly from the argument but use get_user and copy_from_user. Signed-off-by: James Hogan <james.hogan@imgtec.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'Documentation/watchdog/watchdog-api.txt')
-rw-r--r--Documentation/watchdog/watchdog-api.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/Documentation/watchdog/watchdog-api.txt b/Documentation/watchdog/watchdog-api.txt
index 4cc4ba9d7150..eb7132ed8bbc 100644
--- a/Documentation/watchdog/watchdog-api.txt
+++ b/Documentation/watchdog/watchdog-api.txt
@@ -222,11 +222,10 @@ returned value is the temperature in degrees fahrenheit.
ioctl(fd, WDIOC_GETTEMP, &temperature);
Finally the SETOPTIONS ioctl can be used to control some aspects of
-the cards operation; right now the pcwd driver is the only one
-supporting this ioctl.
+the cards operation.
int options = 0;
- ioctl(fd, WDIOC_SETOPTIONS, options);
+ ioctl(fd, WDIOC_SETOPTIONS, &options);
The following options are available: