of: Move phandle walking to of_phandle_iterator_next()
authorJoerg Roedel <jroedel@suse.de>
Mon, 4 Apr 2016 15:49:18 +0000 (17:49 +0200)
committerRob Herring <robh@kernel.org>
Tue, 19 Apr 2016 22:25:13 +0000 (17:25 -0500)
commitcd209b412c8a5d632b51af1e45576f0d00b8105f
tree72164b609b058fe318f0f7dcd6d87d08f05ae842
parent74e1fbb1375a3ede3e17da22911761ce9bc8f53f
of: Move phandle walking to of_phandle_iterator_next()

Move the code to walk over the phandles out of the loop in
__of_parse_phandle_with_args() to a separate function that
just works with the iterator handle: of_phandle_iterator_next().

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/base.c
include/linux/of.h