diff options
author | Simon Glass <sjg@chromium.org> | 2022-09-07 05:27:13 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-09-29 23:11:14 +0300 |
commit | 4b1f5714658e98f55e9dbae58fd5000f9a3fcbd3 (patch) | |
tree | 158b63a4856dcbbc592316a07694704c1b7a4d41 /drivers | |
parent | 1701359f752b9622752df6a6c6a1326c225a5616 (diff) | |
download | u-boot-4b1f5714658e98f55e9dbae58fd5000f9a3fcbd3.tar.xz |
dm: core: Rename ofnode_get_first/next_property()
Drop the 'get' in these names since it does not fit with the rest of
the API.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/core/ofnode.c | 4 | ||||
-rw-r--r-- | drivers/core/read.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index caf28c68c4..2feca567a8 100644 --- a/drivers/core/ofnode.c +++ b/drivers/core/ofnode.c @@ -780,7 +780,7 @@ const void *ofnode_get_property(ofnode node, const char *propname, int *lenp) propname, lenp); } -int ofnode_get_first_property(ofnode node, struct ofprop *prop) +int ofnode_first_property(ofnode node, struct ofprop *prop) { prop->node = node; @@ -799,7 +799,7 @@ int ofnode_get_first_property(ofnode node, struct ofprop *prop) return 0; } -int ofnode_get_next_property(struct ofprop *prop) +int ofnode_next_property(struct ofprop *prop) { if (ofnode_is_np(prop->node)) { prop->prop = of_get_next_property(ofnode_to_np(prop->node), diff --git a/drivers/core/read.c b/drivers/core/read.c index 07ab8ab41c..df298d50cd 100644 --- a/drivers/core/read.c +++ b/drivers/core/read.c @@ -287,12 +287,12 @@ const void *dev_read_prop(const struct udevice *dev, const char *propname, int dev_read_first_prop(const struct udevice *dev, struct ofprop *prop) { - return ofnode_get_first_property(dev_ofnode(dev), prop); + return ofnode_first_property(dev_ofnode(dev), prop); } int dev_read_next_prop(struct ofprop *prop) { - return ofnode_get_next_property(prop); + return ofnode_next_property(prop); } const void *dev_read_prop_by_prop(struct ofprop *prop, |