]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - include/linux/of.h
dt: introduce for_each_available_child_of_node, of_get_next_available_child
authorTimur Tabi <timur@freescale.com>
Tue, 14 Aug 2012 13:20:23 +0000 (13:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Aug 2012 09:16:00 +0000 (02:16 -0700)
commit3296193d1421c2d6f9e49e181cecfd917f0f5764
treee3252ad5cd1979bbdf64f46975b602f474fa2bb3
parent476ad154f3b41dd7d9a08a2f641e28388abc2fd1
dt: introduce for_each_available_child_of_node, of_get_next_available_child

Macro for_each_child_of_node() makes it easy to iterate over all of the
children for a given device tree node, including those nodes that are
marked as unavailable (i.e. status = "disabled").

Introduce for_each_available_child_of_node(), which is like
for_each_child_of_node(), but it automatically skips unavailable nodes.
This also requires the introduction of helper function
of_get_next_available_child(), which returns the next available child
node.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/of/base.c
include/linux/of.h