diff options
| author | Simon Glass <[email protected]> | 2022-09-06 20:26:57 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-09-29 16:07:58 -0400 |
| commit | 829d51246fda25655b64224f2a19976797cf1897 (patch) | |
| tree | 8e74ee7de940010449347df9c7d04ba4afbb551f /include/dm/ofnode.h | |
| parent | b5001cb4bdfed678877840776c15b1e9a358dacf (diff) | |
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 <[email protected]>
Diffstat (limited to 'include/dm/ofnode.h')
| -rw-r--r-- | include/dm/ofnode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index f6085231bbd..6414b4648f9 100644 --- a/include/dm/ofnode.h +++ b/include/dm/ofnode.h @@ -501,6 +501,8 @@ int ofnode_get_path(ofnode node, char *buf, int buflen); /** * ofnode_get_by_phandle() - get ofnode from phandle * + * This uses the default (control) device tree + * * @phandle: phandle to look up * Return: ofnode reference to the phandle */ |
