]> git.baikalelectronics.ru Git - kernel.git/commit
of/unittest: remove use of node name pointer in overlay high level test
authorRob Herring <robh@kernel.org>
Mon, 27 Aug 2018 13:38:08 +0000 (08:38 -0500)
committerRob Herring <robh@kernel.org>
Tue, 4 Sep 2018 14:59:45 +0000 (09:59 -0500)
commit51be09501918235c1d4548ac3cc699c8037f33b0
tree0d26c581ca954c083d25554cc09b413b4d3d7cc1
parent72c947294252cbe2f65f649bd9bf0ffe56abd5f0
of/unittest: remove use of node name pointer in overlay high level test

In preparation for removing the node name pointer, it needs to be
removed from of_unittest_overlay_high_level. However, it's not really
correct to use the node name without the unit-address and we should use
the full node name. This most easily done by iterating over the child
nodes with for_each_child_of_node() which is what of_get_child_by_name()
does internally. While at it, we might as well convert the outer loop to
use for_each_child_of_node() too instead of open coding it.

Reviewed-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/unittest.c