aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common
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/common
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/common')
-rw-r--r--xen/common/device_tree.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c
index a5abdaa462..2c2dc5227f 100644
--- a/xen/common/device_tree.c
+++ b/xen/common/device_tree.c
@@ -624,7 +624,7 @@ struct dt_device_node *dt_find_node_by_name(struct dt_device_node *from,
struct dt_device_node *dt;
dt = from ? from->allnext : dt_host;
- for_each_device_node(dt, np)
+ dt_for_each_device_node(dt, np)
if ( np->name && (dt_node_cmp(np->name, name) == 0) )
break;
@@ -635,7 +635,7 @@ struct dt_device_node *dt_find_node_by_path(const char *path)
{
struct dt_device_node *np;
- for_each_device_node(dt_host, np)
+ dt_for_each_device_node(dt_host, np)
if ( np->full_name && (dt_node_cmp(np->full_name, path) == 0) )
break;
@@ -672,7 +672,7 @@ dt_find_compatible_node(struct dt_device_node *from,
struct dt_device_node *dt;
dt = from ? from->allnext : dt_host;
- for_each_device_node(dt, np)
+ dt_for_each_device_node(dt, np)
{
if ( type
&& !(np->type && (dt_node_cmp(np->type, type) == 0)) )
@@ -1009,7 +1009,7 @@ static const struct dt_device_node *dt_find_node_by_phandle(dt_phandle handle)
{
const struct dt_device_node *np;
- for_each_device_node(dt_host, np)
+ dt_for_each_device_node(dt_host, np)
if ( np->phandle == handle )
break;
@@ -1679,7 +1679,7 @@ static void __init dt_alias_scan(void)
if ( !aliases )
return;
- for_each_property_of_node( aliases, pp )
+ dt_for_each_property_node( aliases, pp )
{
const char *start = pp->name;
const char *end = start + strlen(start);