]> git.ipfire.org Git - people/ms/u-boot.git/commit
core: ofnode: add ofnode_get_parent function
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 23 Feb 2018 16:38:49 +0000 (17:38 +0100)
committerAnatolij Gustschin <agust@denx.de>
Fri, 23 Feb 2018 19:47:47 +0000 (20:47 +0100)
commite2d5997ffdf5cbf4f7d53584dab2ffc673f50987
treef85fd1c36105b7a728145ec95b13dbc4a5b1e847
parentf0f6917188ad660cf002c10095f46ecf748b8f58
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>
drivers/core/ofnode.c
include/dm/ofnode.h