1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00
Files
u-boot-megous/test/dm
Patrick Delaunay ce891fcada dm: core: add ofnode and dev function to iterate on node property
Add functions to iterate on all property with livetree
- dev_read_first_prop
- dev_read_next_prop
- dev_read_prop_by_prop
and
- ofnode_get_first_property
- ofnode_get_next_property
- ofnode_get_property_by_prop

And helper: dev_for_each_property

For example:
struct ofprop property;

dev_for_each_property(property, config) {
	value = dev_read_prop_by_prop(&property, &propname, &len);

or:

for (res = ofnode_get_first_property(node, &property);
     !res;
     res = ofnode_get_next_property(&property))
{
     value = ofnode_get_property_by_prop(&property, &propname, &len);
....
}

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-04-16 23:06:54 -04:00
..
2020-04-16 14:36:28 +08:00
2019-07-12 21:07:58 -04:00
2018-08-11 08:11:02 +02:00
2018-09-29 11:49:35 -06:00
2020-04-16 14:36:28 +08:00
2019-10-13 23:34:43 +02:00
2019-08-11 16:43:41 -04:00
2018-12-06 23:26:32 -05:00
2018-12-13 16:32:49 -07:00
2019-07-05 14:19:41 +02:00
2018-10-09 04:40:27 -06:00
2019-02-20 15:27:08 +08:00
2019-07-11 10:05:15 -04:00
2018-07-19 17:03:28 -04:00
2020-02-05 19:33:46 -07:00
2019-11-25 13:28:53 +01:00