]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: add ofnode_get_path()
authorMarek Behún <marek.behun@nic.cz>
Wed, 26 May 2021 12:08:18 +0000 (14:08 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 24 Jun 2021 06:23:00 +0000 (11:53 +0530)
commitae53eef464613c16e570932be85845496a3cb5fc
treea14f4bf602e2c3251e70671a8419fab0f8139441
parent416ac5fe75b75d2699e70c18b0b38d5d834d4d78
dm: core: add ofnode_get_path()

Add function for retrieving full node path of a given ofnode.
This uses np->full_name if OF is live, otherwise a call to
fdt_get_path() is made.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Tested-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/core/ofnode.c
include/dm/ofnode.h
test/dm/ofnode.c