| // SPDX-License-Identifier: GPL-2.0+ |
| static int dm_test_ofprop_get_property(struct unit_test_state *uts) |
| node = ofnode_path("/cros-ec/flash"); |
| for (res = ofnode_first_property(node, &prop); |
| res = ofnode_next_property(&prop)) { |
| value = ofprop_get_property(&prop, &propname, &len); |
| ut_asserteq_str("image-pos", propname); |
| ut_asserteq_str("size", propname); |
| ut_asserteq_str("erase-value", propname); |
| ut_asserteq_str("name", propname); |
| ut_asserteq_str("flash", value); |
| DM_TEST(dm_test_ofprop_get_property, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT); |