diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/dm/of_access.h | 4 | ||||
| -rw-r--r-- | include/dm/ofnode.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/dm/of_access.h b/include/dm/of_access.h index 83f34f0d2ad..d8c6d116433 100644 --- a/include/dm/of_access.h +++ b/include/dm/of_access.h @@ -258,11 +258,13 @@ struct device_node *of_find_node_by_prop_value(struct device_node *from, /** * of_find_node_by_phandle() - Find a node given a phandle * + * @root: root node to start from (NULL for default device tree) * @handle: phandle of the node to find * * Return: node pointer, or NULL if not found */ -struct device_node *of_find_node_by_phandle(phandle handle); +struct device_node *of_find_node_by_phandle(struct device_node *root, + phandle handle); /** * of_read_u8() - Find and read a 8-bit integer from a property 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 */ |
