[PATCH v2 02/10] include: dm: ofnode: fix headers

Kever Yang kever.yang at rock-chips.com
Thu Feb 16 08:41:44 CET 2023


On 2023/2/7 22:52, Johan Jonker wrote:
> When fdt_addr_t and phys_addr_t are split it turns out that
> the header don't match the functions, so fix the headers.
>
> Signed-off-by: Johan Jonker <jbx6244 at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
Reviewed-by: Kever Yang <kever.yang at rock-chips.com>

Thanks,
- Kever
> ---
>   include/dm/ofnode.h | 16 ++++++++--------
>   1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h
> index fa986560..287b0c35 100644
> --- a/include/dm/ofnode.h
> +++ b/include/dm/ofnode.h
> @@ -678,8 +678,8 @@ int ofnode_read_size(ofnode node, const char *propname);
>    * @size: Pointer to size of the address
>    * Return: address, or FDT_ADDR_T_NONE if not present or invalid
>    */
> -phys_addr_t ofnode_get_addr_size_index(ofnode node, int index,
> -				       fdt_size_t *size);
> +fdt_addr_t ofnode_get_addr_size_index(ofnode node, int index,
> +				      fdt_size_t *size);
>
>   /**
>    * ofnode_get_addr_size_index_notrans() - get an address/size from a node
> @@ -695,8 +695,8 @@ phys_addr_t ofnode_get_addr_size_index(ofnode node, int index,
>    * @size: Pointer to size of the address
>    * Return: address, or FDT_ADDR_T_NONE if not present or invalid
>    */
> -phys_addr_t ofnode_get_addr_size_index_notrans(ofnode node, int index,
> -					       fdt_size_t *size);
> +fdt_addr_t ofnode_get_addr_size_index_notrans(ofnode node, int index,
> +					      fdt_size_t *size);
>
>   /**
>    * ofnode_get_addr_index() - get an address from a node
> @@ -707,7 +707,7 @@ phys_addr_t ofnode_get_addr_size_index_notrans(ofnode node, int index,
>    * @index: Index of address to read (0 for first)
>    * Return: address, or FDT_ADDR_T_NONE if not present or invalid
>    */
> -phys_addr_t ofnode_get_addr_index(ofnode node, int index);
> +fdt_addr_t ofnode_get_addr_index(ofnode node, int index);
>
>   /**
>    * ofnode_get_addr() - get an address from a node
> @@ -717,7 +717,7 @@ phys_addr_t ofnode_get_addr_index(ofnode node, int index);
>    * @node: node to read from
>    * Return: address, or FDT_ADDR_T_NONE if not present or invalid
>    */
> -phys_addr_t ofnode_get_addr(ofnode node);
> +fdt_addr_t ofnode_get_addr(ofnode node);
>
>   /**
>    * ofnode_get_size() - get size from a node
> @@ -1055,8 +1055,8 @@ const void *ofprop_get_property(const struct ofprop *prop,
>    * @sizep: place to put size value (on success)
>    * Return: address value, or FDT_ADDR_T_NONE on error
>    */
> -phys_addr_t ofnode_get_addr_size(ofnode node, const char *propname,
> -				 phys_size_t *sizep);
> +fdt_addr_t ofnode_get_addr_size(ofnode node, const char *propname,
> +				fdt_size_t *sizep);
>
>   /**
>    * ofnode_read_u8_array_ptr() - find an 8-bit array
> --
> 2.20.1
>


More information about the U-Boot mailing list