All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] of: property: add missing kerneldoc for of_graph_get_endpoint_count()
@ 2024-02-02  6:10 Kuninori Morimoto
  2024-02-04  9:16 ` Laurent Pinchart
  0 siblings, 1 reply; 3+ messages in thread
From: Kuninori Morimoto @ 2024-02-02  6:10 UTC (permalink / raw)
  To: Frank Rowand, Rob Herring, devicetree
  Cc: Dmitry Baryshkov, Luca Ceresoli, Sakari Ailus, Laurent Pinchart

of_graph_get_endpoint_count() doesn't have kerneldoc. Add it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 drivers/of/property.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/of/property.c b/drivers/of/property.c
index afdaefbd03f6..4e879faa1710 100644
--- a/drivers/of/property.c
+++ b/drivers/of/property.c
@@ -811,6 +811,12 @@ struct device_node *of_graph_get_remote_port(const struct device_node *node)
 }
 EXPORT_SYMBOL(of_graph_get_remote_port);
 
+/**
+ * of_graph_get_endpoint_count() - get count of endpoint
+ * @np: pointer to the parent device node
+ *
+ * Return: count of endpoint of this device node
+ */
 int of_graph_get_endpoint_count(const struct device_node *np)
 {
 	struct device_node *endpoint;
-- 
2.25.1


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

* Re: [PATCH 1/2] of: property: add missing kerneldoc for of_graph_get_endpoint_count()
  2024-02-02  6:10 [PATCH 1/2] of: property: add missing kerneldoc for of_graph_get_endpoint_count() Kuninori Morimoto
@ 2024-02-04  9:16 ` Laurent Pinchart
  2024-02-05  0:36   ` Kuninori Morimoto
  0 siblings, 1 reply; 3+ messages in thread
From: Laurent Pinchart @ 2024-02-04  9:16 UTC (permalink / raw)
  To: Kuninori Morimoto
  Cc: Frank Rowand, Rob Herring, devicetree, Dmitry Baryshkov,
	Luca Ceresoli, Sakari Ailus

Hello Morimoto-san,

Thank you for the patch.

On Fri, Feb 02, 2024 at 06:10:08AM +0000, Kuninori Morimoto wrote:
> of_graph_get_endpoint_count() doesn't have kerneldoc. Add it.
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
>  drivers/of/property.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/of/property.c b/drivers/of/property.c
> index afdaefbd03f6..4e879faa1710 100644
> --- a/drivers/of/property.c
> +++ b/drivers/of/property.c
> @@ -811,6 +811,12 @@ struct device_node *of_graph_get_remote_port(const struct device_node *node)
>  }
>  EXPORT_SYMBOL(of_graph_get_remote_port);
>  
> +/**
> + * of_graph_get_endpoint_count() - get count of endpoint

s/endpoint/endpoints/

or, possibly better,

 * of_graph_get_endpoint_count() - get the number of endpoints in a device node

> + * @np: pointer to the parent device node

Let's use the same parameter description as for the
for_each_endpoint_of_node() macro, for consistency:

 * @parent: parent device node containing ports and endpoints

With these small changes,

Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

> + *
> + * Return: count of endpoint of this device node
> + */
>  int of_graph_get_endpoint_count(const struct device_node *np)
>  {
>  	struct device_node *endpoint;

-- 
Regards,

Laurent Pinchart

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

* Re: [PATCH 1/2] of: property: add missing kerneldoc for of_graph_get_endpoint_count()
  2024-02-04  9:16 ` Laurent Pinchart
@ 2024-02-05  0:36   ` Kuninori Morimoto
  0 siblings, 0 replies; 3+ messages in thread
From: Kuninori Morimoto @ 2024-02-05  0:36 UTC (permalink / raw)
  To: Laurent Pinchart
  Cc: Frank Rowand, Rob Herring, devicetree, Dmitry Baryshkov,
	Luca Ceresoli, Sakari Ailus


Hi Laurent

Thank you for your review

> s/endpoint/endpoints/
> 
> or, possibly better,
> 
>  * of_graph_get_endpoint_count() - get the number of endpoints in a device node
> 
> > + * @np: pointer to the parent device node
> 
> Let's use the same parameter description as for the
> for_each_endpoint_of_node() macro, for consistency:
> 
>  * @parent: parent device node containing ports and endpoints

Thanks.
Will update on v2 and it will have your Reviewed-by


Thank you for your help !!

Best regards
---
Renesas Electronics
Ph.D. Kuninori Morimoto

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

end of thread, other threads:[~2024-02-05  0:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-02  6:10 [PATCH 1/2] of: property: add missing kerneldoc for of_graph_get_endpoint_count() Kuninori Morimoto
2024-02-04  9:16 ` Laurent Pinchart
2024-02-05  0:36   ` Kuninori Morimoto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.