devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] of: base: Add missing parameter description to of_get_next_child_with_prefix()
@ 2024-11-29  6:11 Yang Li
  2024-12-04 14:18 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Li @ 2024-11-29  6:11 UTC (permalink / raw)
  To: robh, saravanak; +Cc: devicetree, linux-kernel, Yang Li, Abaci Robot

The function of_get_next_child_with_prefix() lacked a description for
the prefix parameter in its documentation. This patch adds the missing
description to ensure all parameters are properly documented.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=12178
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 drivers/of/base.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/of/base.c b/drivers/of/base.c
index 4cba021c89d3..600236abb5d6 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -648,6 +648,7 @@ EXPORT_SYMBOL(of_get_next_child);
  * of_get_next_child_with_prefix - Find the next child node with prefix
  * @node:	parent node
  * @prev:	previous child of the parent node, or NULL to get first
+ * @prefix:     prefix string to match in child node names
  *
  * This function is like of_get_next_child(), except that it automatically
  * skips any nodes whose name doesn't have the given prefix.
-- 
2.32.0.3.g01195cf9f


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] of: base: Add missing parameter description to of_get_next_child_with_prefix()
  2024-11-29  6:11 [PATCH -next] of: base: Add missing parameter description to of_get_next_child_with_prefix() Yang Li
@ 2024-12-04 14:18 ` Rob Herring
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2024-12-04 14:18 UTC (permalink / raw)
  To: Yang Li; +Cc: saravanak, devicetree, linux-kernel, Abaci Robot

On Fri, Nov 29, 2024 at 02:11:55PM +0800, Yang Li wrote:
> The function of_get_next_child_with_prefix() lacked a description for
> the prefix parameter in its documentation. This patch adds the missing
> description to ensure all parameters are properly documented.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=12178
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
> ---
>  drivers/of/base.c | 1 +
>  1 file changed, 1 insertion(+)

Thanks, but already fixed in upstream commit 0d40daa1c136 ("of: base: 
Document prefix argument for of_get_next_child_with_prefix()").

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-04 14:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-29  6:11 [PATCH -next] of: base: Add missing parameter description to of_get_next_child_with_prefix() Yang Li
2024-12-04 14:18 ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).