Skip to content

Commit 0d40daa

Browse files
wensWolfram Sang
authored andcommitted
of: base: Document prefix argument for of_get_next_child_with_prefix()
When of_get_next_child_with_prefix() was added, the prefix argument was left undocumented. This caused a new warning to be generated during the kerneldoc build process: drivers/of/base.c:661: warning: Function parameter or struct member 'prefix' not described in 'of_get_next_child_with_prefix' Properly document the argument to fix this. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 1fcc67e ("of: base: Add for_each_child_of_node_with_prefix()") Signed-off-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 44b6826 commit 0d40daa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/of/base.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ EXPORT_SYMBOL(of_get_next_child);
648648
* of_get_next_child_with_prefix - Find the next child node with prefix
649649
* @node: parent node
650650
* @prev: previous child of the parent node, or NULL to get first
651+
* @prefix: prefix that the node name should have
651652
*
652653
* This function is like of_get_next_child(), except that it automatically
653654
* skips any nodes whose name doesn't have the given prefix.

0 commit comments

Comments
 (0)