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-12-13 16:32:49 -07:00
2018-08-11 08:11:02 +02:00
2018-11-14 09:16:27 -08:00
2018-09-29 11:49:35 -06:00
2019-01-14 17:41:23 -05:00
2019-10-11 10:07:33 -04:00
2019-09-03 09:31:03 +08:00
2019-08-22 00:10:09 +02:00
2020-02-05 19:33:46 -07:00
2019-10-08 13:57:38 +08:00
2020-04-16 14:36:28 +08:00
2020-02-05 19:33:46 -07:00
2020-02-05 19:33:46 -07:00
2019-10-13 23:34:43 +02:00
2019-08-11 16:43:41 -04:00
2020-04-16 08:07:58 -06:00
2018-09-29 11:49:35 -06:00
2020-02-05 19:33:46 -07:00
2018-12-06 23:26:32 -05:00
2019-12-17 06:57:31 +01:00
2018-12-13 16:32:49 -07:00
2020-02-07 22:46:32 +08:00
2018-08-10 10:27:32 -04:00
2020-02-05 19:33:46 -07:00
2020-04-16 23:06:54 -04:00
2019-07-18 16:37:13 -05:00
2019-07-18 16:37:13 -05:00
2018-11-20 19:14:22 -07:00
2018-05-07 09:34:12 -04:00
2019-07-05 14:19:41 +02:00
2020-02-05 19:33:45 -07:00
2020-04-16 23:06:54 -04:00
2018-09-28 18:26:52 +02:00
2019-12-15 11:44:11 +08: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
2019-10-08 13:57:43 +08:00
2018-05-07 09:34:12 -04:00
2019-12-15 11:44:11 +08:00
2018-05-18 08:27:26 +02:00
2020-02-05 19:33:46 -07:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2020-02-05 19:33:46 -07:00
2019-11-10 20:31:09 +08:00
2020-01-07 11:13:25 -05:00
2020-02-05 19:33:46 -07:00
2020-01-07 18:08:21 +01:00
2018-11-29 09:30:05 -07:00
2020-04-16 14:36:28 +08:00
2019-12-02 18:25:02 -05:00
2018-07-19 17:03:28 -04:00
2020-02-05 19:33:46 -07:00
2020-01-27 22:27:21 +05:30
2020-02-05 19:33:46 -07:00
2020-02-05 19:33:46 -07:00
2018-12-05 06:01:34 -07:00
2020-02-05 19:33:46 -07:00
2018-05-07 09:34:12 -04:00
2020-04-16 08:07:58 -06:00
2020-02-05 19:33:46 -07:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-11-25 13:28:53 +01:00
2020-02-05 19:33:46 -07:00
2018-11-14 09:16:28 -08:00
2018-05-07 09:34:12 -04:00