1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00
Files
u-boot-megous/include
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-12-06 16:44:20 -05:00
2019-11-17 17:22:53 +08:00
2019-12-15 11:44:16 +08:00
2020-02-05 19:33:46 -07:00
2020-04-16 14:36:28 +08:00
2020-01-07 14:37:50 +01:00
2020-02-05 19:33:46 -07:00
2020-01-24 23:06:47 +05:30
2020-01-20 15:38:16 +01:00
2020-01-20 15:38:16 +01:00
2020-01-24 23:06:49 +05:30
2019-12-02 18:23:11 -05:00
2020-01-25 12:04:36 -05:00
2020-03-09 18:11:23 -05:00
2020-02-05 19:33:46 -07:00
2019-12-15 11:44:11 +08:00
2020-02-05 19:33:46 -07:00
2019-12-06 16:44:19 -05:00
2020-03-09 08:33:16 +08:00
2020-02-05 19:33:46 -07:00
2020-04-16 14:36:28 +08:00
2020-03-16 16:42:50 -04:00
2020-01-24 23:06:49 +05:30
2020-01-21 15:56:15 +01:00
2020-02-07 22:46:35 +08:00
2019-12-02 18:23:09 -05:00