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 <[email protected]>
Cc: Grant Likely <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
This commit is contained in:
Dong Aisheng 2011-12-22 20:19:24 +08:00 • committed by Rob Herring
commit 8af0da93da
2 changed files with 3 additions and 3 deletions

View file

@ -1157,7 +1157,7 @@ void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align))
if (!of_aliases)
return;
for_each_property(pp, of_aliases->properties) {
for_each_property_of_node(of_aliases, pp) {
const char *start = pp->name;
const char *end = start + strlen(start);
struct device_node *np;