diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-06-22 16:54:05 +0900 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-07-11 10:08:20 -0600 |
commit | 61e51babdb674e4619165cdc180786af7ec75ae9 (patch) | |
tree | 383c6cf77d30ffea66927f25274544a9299a645f /include/dm/ofnode.h | |
parent | cb7dbe1fb017f0a1ad050a9dc91ed2c10cb998e6 (diff) | |
download | u-boot-61e51babdb674e4619165cdc180786af7ec75ae9.tar.gz |
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>
Diffstat (limited to 'include/dm/ofnode.h')
-rw-r--r-- | include/dm/ofnode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index c3d8db5b16..15ad5199c2 100644 --- a/include/dm/ofnode.h +++ b/include/dm/ofnode.h @@ -473,14 +473,14 @@ int ofnode_decode_display_timing(ofnode node, int index, struct display_timing *config); /** - * ofnode_read_prop()- - read a node property + * ofnode_get_property()- - get a pointer to the value of a node property * * @node: node to read * @propname: property to read * @lenp: place to put length on success * @return pointer to property, or NULL if not found */ -const u32 *ofnode_read_prop(ofnode node, const char *propname, int *lenp); +const void *ofnode_get_property(ofnode node, const char *propname, int *lenp); /** * ofnode_is_available() - check if a node is marked available |