aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/device_tree.h
diff options
context:
space:
mode:
authorJulien Grall <julien.grall@linaro.org>2013-09-13 13:49:09 +0100
committerIan Campbell <ian.campbell@citrix.com>2013-09-17 15:27:37 +0100
commitdff2cc632483e3870984c501b99f17f0d0f5bbc5 (patch)
tree987516859f23f00ef7d9fba438fcd8a793e69858 /xen/include/xen/device_tree.h
parent9fe65ea7397b114c1d90e4a445395955220f099c (diff)
downloadxen-dff2cc632483e3870984c501b99f17f0d0f5bbc5.tar.gz
xen-dff2cc632483e3870984c501b99f17f0d0f5bbc5.tar.bz2
xen-dff2cc632483e3870984c501b99f17f0d0f5bbc5.zip
xen/dts: Prefix device tree macro by dt_
There is 2 macros: for_each_device_node and for_each_property_of_node with a too generic name. Also replace all call-site with the new function names. Signed-off-by: Julien Grall <julien.grall@linaro.org> Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/include/xen/device_tree.h')
-rw-r--r--xen/include/xen/device_tree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/include/xen/device_tree.h b/xen/include/xen/device_tree.h
index 2e5564e56f..ca8371ec1d 100644
--- a/xen/include/xen/device_tree.h
+++ b/xen/include/xen/device_tree.h
@@ -236,10 +236,10 @@ struct dt_device_node * __init dt_find_interrupt_controller(const char *compat);
#define DT_ROOT_NODE_ADDR_CELLS_DEFAULT 2
#define DT_ROOT_NODE_SIZE_CELLS_DEFAULT 1
-#define for_each_property_of_node(dn, pp) \
+#define dt_for_each_property_node(dn, pp) \
for ( pp = dn->properties; pp != NULL; pp = pp->next )
-#define for_each_device_node(dt, dn) \
+#define dt_for_each_device_node(dt, dn) \
for ( dn = dt; dn != NULL; dn = dn->allnext )
/* Helper to read a big number; size is in cells (not bytes) */