summaryrefslogtreecommitdiffstats
path: root/include/of.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/of.h')
-rw-r--r--include/of.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index e60cb5307d..f27a0b8ccd 100644
--- a/include/of.h
+++ b/include/of.h
@@ -734,6 +734,8 @@ static inline int of_autoenable_i2c_by_component(char *path)
#endif
+#define for_each_property_of_node(dn, pp) \
+ list_for_each_entry(pp, &dn->properties, list)
#define for_each_node_by_name(dn, name) \
for (dn = of_find_node_by_name(NULL, name); dn; \
dn = of_find_node_by_name(dn, name))