Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282214
b: refs/heads/master
c: 02861cc
h: refs/heads/master
v: v3
  • Loading branch information
Wolfram Sang authored and Wim Van Sebroeck committed Jan 6, 2012
1 parent bd2b25d commit 738252b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9d36bc8cd8d607ec5db98bcc85b27cff9e1b6dfd
refs/heads/master: 02861cca4b4f1ceaa7dc805041d84caee580670b
19 changes: 19 additions & 0 deletions trunk/Documentation/watchdog/convert_drivers_to_kernel_api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,25 @@ Here is a simple example for a watchdog device:
+};


Handle the 'nowayout' feature
-----------------------------

A few drivers use nowayout statically, i.e. there is no module parameter for it
and only CONFIG_WATCHDOG_NOWAYOUT determines if the feature is going to be
used. This needs to be converted by initializing the status variable of the
watchdog_device like this:

.status = WATCHDOG_NOWAYOUT_INIT_STATUS,

Most drivers, however, also allow runtime configuration of nowayout, usually
by adding a module parameter. The conversion for this would be something like:

watchdog_set_nowayout(&s3c2410_wdd, nowayout);

The module parameter itself needs to stay, everything else related to nowayout
can go, though. This will likely be some code in open(), close() or write().


Register the watchdog device
----------------------------

Expand Down

0 comments on commit 738252b

Please sign in to comment.