diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2011-12-01 18:43:11 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-01-06 09:26:14 -0500 |
commit | 02861cca4b4f1ceaa7dc805041d84caee580670b (patch) | |
tree | 497521e74d64c1eddd7ab1e141bea9bfd045e0d2 | |
parent | 9d36bc8cd8d607ec5db98bcc85b27cff9e1b6dfd (diff) |
watchdog: documentation: describe nowayout in coversion-guide
nowayout is also handled by the watchdog core. Describe how this needs
to be addressed in the conversion guide.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
-rw-r--r-- | Documentation/watchdog/convert_drivers_to_kernel_api.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Documentation/watchdog/convert_drivers_to_kernel_api.txt b/Documentation/watchdog/convert_drivers_to_kernel_api.txt index ae1e90036d06..be8119bb15d2 100644 --- a/Documentation/watchdog/convert_drivers_to_kernel_api.txt +++ b/Documentation/watchdog/convert_drivers_to_kernel_api.txt | |||
@@ -163,6 +163,25 @@ Here is a simple example for a watchdog device: | |||
163 | +}; | 163 | +}; |
164 | 164 | ||
165 | 165 | ||
166 | Handle the 'nowayout' feature | ||
167 | ----------------------------- | ||
168 | |||
169 | A few drivers use nowayout statically, i.e. there is no module parameter for it | ||
170 | and only CONFIG_WATCHDOG_NOWAYOUT determines if the feature is going to be | ||
171 | used. This needs to be converted by initializing the status variable of the | ||
172 | watchdog_device like this: | ||
173 | |||
174 | .status = WATCHDOG_NOWAYOUT_INIT_STATUS, | ||
175 | |||
176 | Most drivers, however, also allow runtime configuration of nowayout, usually | ||
177 | by adding a module parameter. The conversion for this would be something like: | ||
178 | |||
179 | watchdog_set_nowayout(&s3c2410_wdd, nowayout); | ||
180 | |||
181 | The module parameter itself needs to stay, everything else related to nowayout | ||
182 | can go, though. This will likely be some code in open(), close() or write(). | ||
183 | |||
184 | |||
166 | Register the watchdog device | 185 | Register the watchdog device |
167 | ---------------------------- | 186 | ---------------------------- |
168 | 187 | ||