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>
Showing
- drivers/core/lists.c 1 addition, 2 deletionsdrivers/core/lists.c
- drivers/core/ofnode.c 2 additions, 2 deletionsdrivers/core/ofnode.c
- drivers/core/read.c 1 addition, 1 deletiondrivers/core/read.c
- drivers/misc/cros_ec_sandbox.c 1 addition, 1 deletiondrivers/misc/cros_ec_sandbox.c
- drivers/pci/pci-uclass.c 1 addition, 1 deletiondrivers/pci/pci-uclass.c
- drivers/pinctrl/pinctrl-uclass.c 1 addition, 1 deletiondrivers/pinctrl/pinctrl-uclass.c
- include/dm/ofnode.h 2 additions, 2 deletionsinclude/dm/ofnode.h
- include/dm/read.h 1 addition, 1 deletioninclude/dm/read.h
Loading
Please register or sign in to comment