diff options
Diffstat (limited to 'include/of.h')
-rw-r--r-- | include/of.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h index 0f866f624b..08a02e1105 100644 --- a/include/of.h +++ b/include/of.h @@ -236,6 +236,8 @@ extern int of_property_write_u64_array(struct device_node *np, size_t sz); extern int of_property_write_string(struct device_node *np, const char *propname, const char *value); +extern int of_property_write_strings(struct device_node *np, const char *propname, + ...) __attribute__((__sentinel__)); extern struct device_node *of_parse_phandle(const struct device_node *np, const char *phandle_name, @@ -747,6 +749,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)) |