Skip to contentSkip to conversation

of: linux/of.h: fix kernel-doc warnings

PATCH Applied Randy Dunlap 2 participants 2 messages Apr 17, 2021 – Apr 21, 2021 Device tree

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 of: linux/of.h: fix kernel-doc warnings

Correct kernel-doc notation warnings:

../include/linux/of.h:1211: warning: Function parameter or member 'output' not described in 'of_property_read_string_index' ../include/linux/of.h:1211: warning: Excess function parameter 'out_string' description in 'of_property_read_string_index' ../include/linux/of.h:1477: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* Overlay support

Cc Rob Herring <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 include/linux/of.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/of.h +2 -2
@@ -1192,7 +1192,7 @@ static inline int of_property_count_stri
  * @np:		device node from which the property value is to be read.
  * @propname:	name of the property to be searched.
  * @index:	index of the string in the list of strings
- * @out_string:	pointer to null terminated return string, modified only if
+ * @output:	pointer to null terminated return string, modified only if
  *		return value is 0.
  *
  * Search for a property in a device tree node and retrieve a null
@@ -1473,7 +1473,7 @@ static inline bool of_device_is_system_p
 	return of_property_read_bool(np, "system-power-controller");
 }
 
-/**
+/*
  * Overlay support
  */
 
maintainer Applied
#1 lore raw
Quoted 7 lines · Randy Dunlap

Correct kernel-doc notation warnings:

../include/linux/of.h:1211: warning: Function parameter or member 'output' not described in 'of_property_read_string_index' ../include/linux/of.h:1211: warning: Excess function parameter 'out_string' description in 'of_property_read_string_index' ../include/linux/of.h:1477: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* Overlay support

Quoted 6 lines
Cc Rob Herring <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 include/linux/of.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks!