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)
commit0e116bea52af1b665a656d49c328468e976be913
treea14f4bf602e2c3251e70671a8419fab0f8139441
parent31a7b719d07ccb11950f423b5f1195375109b5fa
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