mirror of
https://xff.cz/git/u-boot/
synced 2025-11-03 11:59:33 +01:00
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>
This commit is contained in:
committed by
Simon Glass
parent
cb7dbe1fb0
commit
61e51babdb
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user