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>
diff --git a/test/dm/ofread.c b/test/dm/ofread.c
index 95a24c3..3523860 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 @@
 	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 @@
 
 	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);