of: Add helpers for finding device nodes which have a given property
commit1e291b14c8f1101b9093434489bd4dc0e03f3d0f
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 12 Nov 2008 18:54:42 +0000 (12 18:54 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 19 Nov 2008 05:05:00 +0000 (19 16:05 +1100)
treeea602cce082e847d693b021d83f1314e9494c9a9
parentae564c63b8311fa73c21e456e00dba1f4b1ff6bc
of: Add helpers for finding device nodes which have a given property

This commit adds a routine for finding a device node which has a
certain property.  The contents of the property are not taken into
account, merely the presence or absence of the property.

Based on that routine, we add a for_each_ macro for iterating over all
nodes that have a certain property.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/of/base.c
include/linux/of.h