[PATCH 1/2] dt: introduce for_each_available_child_of_node, of_get_next_available_child
David Miller
davem at davemloft.net
Mon Aug 20 19:16:24 EST 2012
From: Timur Tabi <timur at freescale.com>
Date: Tue, 14 Aug 2012 18:20:23 -0500
> 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 at freescale.com>
Applied.
More information about the devicetree-discuss
mailing list