diff mbox series

[u-boot-marvell,05/11] fdt_support: Fix comment for fdt_create_phandle()

Message ID 20211103020244.25428-6-kabel@kernel.org
State Superseded
Delegated to: Stefan Roese
Headers show
Series Some mvebu comphy + mox + fdt_support changes | expand

Commit Message

Marek Behún Nov. 3, 2021, 2:02 a.m. UTC
From: Marek Behún <marek.behun@nic.cz>

This function does not necessarily create a new phandle. If a phandle
exists, no new phandle is created.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
---
 common/fdt_support.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefan Roese Nov. 12, 2021, 12:44 p.m. UTC | #1
On 11/3/21 03:02, Marek Behún wrote:
> From: Marek Behún <marek.behun@nic.cz>
> 
> This function does not necessarily create a new phandle. If a phandle
> exists, no new phandle is created.
> 
> Signed-off-by: Marek Behún <marek.behun@nic.cz>

Reviewed-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan

> ---
>   common/fdt_support.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/common/fdt_support.c b/common/fdt_support.c
> index 8ac905011c..df111f708c 100644
> --- a/common/fdt_support.c
> +++ b/common/fdt_support.c
> @@ -1504,7 +1504,7 @@ int fdt_set_phandle(void *fdt, int nodeoffset, uint32_t phandle)
>   }
>   
>   /*
> - * fdt_create_phandle: Create a phandle property for the given node
> + * fdt_create_phandle: Get or create a phandle property for the given node
>    *
>    * @fdt: ptr to device tree
>    * @nodeoffset: node to update
> 

Viele Grüße,
Stefan Roese
diff mbox series

Patch

diff --git a/common/fdt_support.c b/common/fdt_support.c
index 8ac905011c..df111f708c 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -1504,7 +1504,7 @@  int fdt_set_phandle(void *fdt, int nodeoffset, uint32_t phandle)
 }
 
 /*
- * fdt_create_phandle: Create a phandle property for the given node
+ * fdt_create_phandle: Get or create a phandle property for the given node
  *
  * @fdt: ptr to device tree
  * @nodeoffset: node to update