summaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorDong Aisheng <dong.aisheng@linaro.org>2011-12-22 20:19:24 +0800
committerRob Herring <rob.herring@calxeda.com>2011-12-27 10:57:37 -0600
commit8af0da93da7c40526959ab5291964581c678d3e7 (patch)
tree15e7be8b0b0f1dcd46af14b680b5487a4452e501 /include/linux/of.h
parent7b482c8360d368fd495685a2c69ca4f1e7b29764 (diff)
downloadlinux-stable-8af0da93da7c40526959ab5291964581c678d3e7.tar.gz
linux-stable-8af0da93da7c40526959ab5291964581c678d3e7.tar.bz2
linux-stable-8af0da93da7c40526959ab5291964581c678d3e7.zip
dt: reform for_each_property to for_each_property_of_node
Make this macro easier to use(do not need to pass properties, a node is enough), also change to a more sensible name as for_each_child_of_node. Signed-off-by: Dong Aisheng <dong.aisheng@linaro.org> Cc: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 4948552d60f5..f1a490c37e06 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -219,8 +219,8 @@ extern int of_device_is_available(const struct device_node *device);
extern const void *of_get_property(const struct device_node *node,
const char *name,
int *lenp);
-#define for_each_property(pp, properties) \
- for (pp = properties; pp != NULL; pp = pp->next)
+#define for_each_property_of_node(dn, pp) \
+ for (pp = dn->properties; pp != NULL; pp = pp->next)
extern int of_n_addr_cells(struct device_node *np);
extern int of_n_size_cells(struct device_node *np);