summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-09-07 05:27:14 +0300
committerTom Rini <trini@konsulko.com>2022-09-29 23:11:14 +0300
commit9243224687bd92674c693546a46f849b1a54c75c (patch)
tree272469ce1632ed91fda082cf1e5cbd7f2dec8b60 /test
parent4b1f5714658e98f55e9dbae58fd5000f9a3fcbd3 (diff)
downloadu-boot-9243224687bd92674c693546a46f849b1a54c75c.tar.xz
dm: core: Rename ofnode_get_property_by_prop()
The current name is quite unwieldy. Change it to use an ofprop_ prefix and shorten it. Fix the return-value comment while we are here. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/dm/ofread.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/dm/ofread.c b/test/dm/ofread.c
index 95a24c3f42..3523860d2b 100644
--- a/test/dm/ofread.c
+++ b/test/dm/ofread.c
@@ -5,7 +5,7 @@
#include <dm/test.h>
#include <test/ut.h>
-static int dm_test_ofnode_get_property_by_prop(struct unit_test_state *uts)
+static int dm_test_ofprop_get_property(struct unit_test_state *uts)
{
ofnode node;
struct ofprop prop;
@@ -17,7 +17,7 @@ static int dm_test_ofnode_get_property_by_prop(struct unit_test_state *uts)
for (res = ofnode_first_property(node, &prop);
!res;
res = ofnode_next_property(&prop)) {
- value = ofnode_get_property_by_prop(&prop, &propname, &len);
+ value = ofprop_get_property(&prop, &propname, &len);
ut_assertnonnull(value);
switch (count) {
case 0:
@@ -46,5 +46,4 @@ static int dm_test_ofnode_get_property_by_prop(struct unit_test_state *uts)
return 0;
}
-DM_TEST(dm_test_ofnode_get_property_by_prop,
- UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT);
+DM_TEST(dm_test_ofprop_get_property, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT);