[U-Boot] [PATCH 3/5] dm: ofnode: rename ofnode_read_prop() to ofnode_get_property()
sjg at google.com
sjg at google.com
Thu Jul 6 17:36:07 UTC 2017
On 22 June 2017 at 01:54, Masahiro Yamada <yamada.masahiro at socionext.com> wrote:
> This function returns the pointer to the value of a node property.
> The current name ofnode_read_prop() is confusing. Follow the naming
> of_get_property() from Linux.
>
> The return type (const u32 *) is wrong. DT property values can be
> strings as well as integers. This is why of_get_property/fdt_getprop
> returns an opaque pointer.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
> ---
>
> drivers/core/lists.c | 3 +--
> drivers/core/ofnode.c | 4 ++--
> drivers/core/read.c | 2 +-
> drivers/misc/cros_ec_sandbox.c | 2 +-
> drivers/pci/pci-uclass.c | 2 +-
> drivers/pinctrl/pinctrl-uclass.c | 2 +-
> include/dm/ofnode.h | 4 ++--
> include/dm/read.h | 2 +-
> 8 files changed, 10 insertions(+), 11 deletions(-)
Acked-by: Simon Glass <sjg at chromium.org>
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list