[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL_Jsq+140YAXAtxmb4FPdk2C2EZSJ-9AjOz5ik6jK4oHLOdDg@mail.gmail.com>
Date: Mon, 9 Dec 2024 07:20:23 -0600
From: Rob Herring <robh@...nel.org>
To: Zijun Hu <zijun_hu@...oud.com>
Cc: Saravana Kannan <saravanak@...gle.com>, Leif Lindholm <leif.lindholm@...aro.org>,
Stephen Boyd <stephen.boyd@...aro.org>, Maxime Ripard <mripard@...nel.org>,
Robin Murphy <robin.murphy@....com>, Grant Likely <grant.likely@...retlab.ca>,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Zijun Hu <quic_zijuhu@...cinc.com>
Subject: Re: [PATCH 07/10] of: Correct comments for of_alias_scan()
On Thu, Dec 5, 2024 at 6:53 PM Zijun Hu <zijun_hu@...oud.com> wrote:
>
> From: Zijun Hu <quic_zijuhu@...cinc.com>
>
> Correct of_alias_scan() comments by:
>
> - Replace /* with /** to start comments since it is not a API.
But it is because it's in of.h. However, you are correct in that it
has no external callers. So please move the declaration to
of_private.h.
> - Delete return value descriptions since it is a void function.
>
> Signed-off-by: Zijun Hu <quic_zijuhu@...cinc.com>
> ---
> drivers/of/base.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/of/base.c b/drivers/of/base.c
> index 1c62cda4ebcd9e3dc5f91d10fa68f975226693dd..33abb6227468c03fd191201aa2bbe05a41fdd9f4 100644
> --- a/drivers/of/base.c
> +++ b/drivers/of/base.c
> @@ -1812,14 +1812,13 @@ static void of_alias_add(struct alias_prop *ap, struct device_node *np,
> ap->alias, ap->stem, ap->id, np);
> }
>
> -/**
> +/*
> * of_alias_scan - Scan all properties of the 'aliases' node
> * @dt_alloc: An allocator that provides a virtual address to memory
> * for storing the resulting tree
> *
> * The function scans all the properties of the 'aliases' node and populates
> - * the global lookup table with the properties. It returns the
> - * number of alias properties found, or an error code in case of failure.
> + * the global lookup table with the properties.
> */
> void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align))
> {
>
> --
> 2.34.1
>
>
Powered by blists - more mailing lists