]> git.baikalelectronics.ru Git - uboot.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)
commit30fb8101ed8f95b72644df55a5fe743c022d33db
treef85fd1c36105b7a728145ec95b13dbc4a5b1e847
parentef49c8e452d7e9c87b9a9691b9f00e9d9c37e8f1
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