On 22 June 2017 at 01:54, Masahiro Yamada <yamada.masah...@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.masah...@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 <s...@chromium.org>
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to