]> git.sur5r.net Git - u-boot/commit
dm: ofnode: rename ofnode_read_prop() to ofnode_get_property()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 22 Jun 2017 07:54:05 +0000 (16:54 +0900)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Jul 2017 16:08:20 +0000 (10:08 -0600)
commit61e51babdb674e4619165cdc180786af7ec75ae9
tree383c6cf77d30ffea66927f25274544a9299a645f
parentcb7dbe1fb017f0a1ad050a9dc91ed2c10cb998e6
dm: ofnode: rename ofnode_read_prop() to ofnode_get_property()

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@socionext.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/core/lists.c
drivers/core/ofnode.c
drivers/core/read.c
drivers/misc/cros_ec_sandbox.c
drivers/pci/pci-uclass.c
drivers/pinctrl/pinctrl-uclass.c
include/dm/ofnode.h
include/dm/read.h