Skip to contentSkip to conversation

watchdog: document watchdog_init_timeout() wdd parameter

PATCH In review Corentin Labbe 2 participants 2 messages Dec 13, 2017 – Dec 14, 2017 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: document watchdog_init_timeout() wdd parameter

All parameters of watchdog_init_timeout() are documented with exception of wdd, thus generating a build warning.

This patch document it and so remove the following build warning:
drivers/watchdog/watchdog_core.c:113: warning: No description found for parameter 'wdd'

---
 drivers/watchdog/watchdog_core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/watchdog_core.c +1 -0
index 8a8d952f8df9..eb8fa25f8eb2 100644
@@ -97,6 +97,7 @@ static void watchdog_check_min_max_timeout(struct watchdog_device *wdd)
 
 /**
  * watchdog_init_timeout() - initialize the timeout field
+ * @wdd: watchdog device
  * @timeout_parm: timeout module parameter
  * @dev: Device that stores the timeout-sec property
  *
Signature · 1 line
2.13.6
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Corentin Labbe

All parameters of watchdog_init_timeout() are documented with exception of wdd, thus generating a build warning.

This patch document it and so remove the following build warning:
drivers/watchdog/watchdog_core.c:113: warning: No description found for parameter 'wdd'

Quoted 17 lines
---
  drivers/watchdog/watchdog_core.c | 1 +
  1 file changed, 1 insertion(+)
drivers/watchdog/watchdog_core.c +1 -0
index 8a8d952f8df9..eb8fa25f8eb2 100644
@@ -97,6 +97,7 @@ static void watchdog_check_min_max_timeout(struct watchdog_device *wdd)
 
  /**
   * watchdog_init_timeout() - initialize the timeout field
+ * @wdd: watchdog device
   * @timeout_parm: timeout module parameter
   * @dev: Device that stores the timeout-sec property
   *