dm: core: Add ofnode_for_each_subnode()
authorSimon Glass <sjg@chromium.org>
Sat, 5 Aug 2017 21:45:54 +0000 (15:45 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 12 Sep 2017 03:43:58 +0000 (21:43 -0600)
commit3991f42ed2e38aff28ba3c24369bfbd90620bea7
tree4e91056bedde884d7bec42bf45a32e6a1fcd01e0
parent8639f69a61b47971dba47ab5ed72e47436729bb1
dm: core: Add ofnode_for_each_subnode()

Add a convenience macro to iterate over subnodes of a node. Make use of
this where appropriate in the code.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-tegra/xusb-padctl-common.c
drivers/core/ofnode.c
drivers/misc/cros_ec.c
drivers/power/pmic/pmic-uclass.c
include/dm/ofnode.h