mirror of
https://xff.cz/git/u-boot/
synced 2025-10-22 10:31:56 +02:00
core: ofnode: add ofnode_get_parent function
The Rockchip video drivers need to walk the ofnode-parrents to find an enclosing device that has a UCLASS_DISPLAY driver bound. This adds a ofnode_get_parent()-function that returns the parent-node. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com> Reviewed-by: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
committed by
Anatolij Gustschin
parent
f0f6917188
commit
e2d5997ffd
@@ -301,6 +301,14 @@ ofnode ofnode_first_subnode(ofnode node);
|
||||
*/
|
||||
ofnode ofnode_next_subnode(ofnode node);
|
||||
|
||||
/**
|
||||
* ofnode_get_parent() - get the ofnode's parent (enclosing ofnode)
|
||||
*
|
||||
* @node: valid node to look up
|
||||
* @return ofnode reference of the parent node
|
||||
*/
|
||||
ofnode ofnode_get_parent(ofnode node);
|
||||
|
||||
/**
|
||||
* ofnode_get_name() - get the name of a node
|
||||
*
|
||||
|
Reference in New Issue
Block a user