]> git.baikalelectronics.ru Git - uboot.git/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)
commitfc515c44df073bbe090ff7ff5c0392a8a6cc9ed8
tree383c6cf77d30ffea66927f25274544a9299a645f
parent12b583bb5b2c63b6e4e5dab1654685ba89538c51
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