]> git.ipfire.org Git - thirdparty/u-boot.git/commit
dm: core: Pass a root node to of_find_node_by_phandle()
authorSimon Glass <sjg@chromium.org>
Wed, 7 Sep 2022 02:26:57 +0000 (20:26 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 29 Sep 2022 20:07:58 +0000 (16:07 -0400)
commit829d51246fda25655b64224f2a19976797cf1897
tree8e74ee7de940010449347df9c7d04ba4afbb551f
parentb5001cb4bdfed678877840776c15b1e9a358dacf
dm: core: Pass a root node to of_find_node_by_phandle()

This function currently assumes that the control FDT is used. Update it
to allow a root node to be passed, so it can work with any tree.

Also add a comment to ofnode_get_by_phandle() so that its purpose is
clear.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/of_access.c
drivers/core/ofnode.c
include/dm/of_access.h
include/dm/ofnode.h