Skip to contentSkip to conversation

watchdog: sp805: Fix kernel doc description

PATCH In review Andy Shevchenko 2 participants 2 messages May 17, 2021 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: sp805: Fix kernel doc description

Kernel doc validation script is not happy

CHECK .../sp805_wdt.c
.../sp805_wdt.c:73: warning: Function parameter or member 'rate' not described in 'sp805_wdt'

Fix this by describing rate parameter.

While at it, mark clk one optional.

Fixes dc0e4a3bb7dc ("watchdog: sp805: Add clock-frequency property")
Cc Srinath Mannam <[email protected]>
---
 drivers/watchdog/sp805_wdt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/watchdog/sp805_wdt.c +2 -1
index 531551216c8c..dbeb2146c968 100644
@@ -57,7 +57,8 @@
  * @wdd: instance of struct watchdog_device
  * @lock: spin lock protecting dev structure and io access
  * @base: base address of wdt
- * @clk: clock structure of wdt
+ * @clk: (optional) clock structure of wdt
+ * @rate: (optional) clock rate when provided via properties
  * @adev: amba device structure of wdt
  * @status: current status of wdt
  * @load_val: load value to be set for current timeout
Signature · 1 line
2.30.2
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Andy Shevchenko

Kernel doc validation script is not happy

CHECK .../sp805_wdt.c
.../sp805_wdt.c:73: warning: Function parameter or member 'rate' not described in 'sp805_wdt'

Quoted 7 lines

Fix this by describing rate parameter.

While at it, mark clk one optional.

Fixes dc0e4a3bb7dc ("watchdog: sp805: Add clock-frequency property")
Cc Srinath Mannam <[email protected]>
Quoted 21 lines
---
 drivers/watchdog/sp805_wdt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/watchdog/sp805_wdt.c +2 -1
index 531551216c8c..dbeb2146c968 100644
@@ -57,7 +57,8 @@
  * @wdd: instance of struct watchdog_device
  * @lock: spin lock protecting dev structure and io access
  * @base: base address of wdt
- * @clk: clock structure of wdt
+ * @clk: (optional) clock structure of wdt
+ * @rate: (optional) clock rate when provided via properties
  * @adev: amba device structure of wdt
  * @status: current status of wdt
  * @load_val: load value to be set for current timeout
Signature · 1 line
2.30.2