summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-10-25 22:03:28 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-11-27 08:26:40 +0100
commit21aea1d9ff07bbb9098d419118d9a4de0d5bfc60 (patch)
treeda24d67c33e31ca012b95065aa615042fdc29598 /include
parent75b682795eafb2385556a9642f09e0af96a1264a (diff)
downloadbarebox-21aea1d9ff07bbb9098d419118d9a4de0d5bfc60.tar.gz
barebox-21aea1d9ff07bbb9098d419118d9a4de0d5bfc60.tar.xz
of_path: add of_find_path_by_node()
This patch adds the function of_find_path_by_node(), which is similar to of_find_path(), but it translates a device tree node into a barebox device path directly. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/of.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index e0ebc39b74..e60fe89825 100644
--- a/include/of.h
+++ b/include/of.h
@@ -246,6 +246,7 @@ void of_add_memory_bank(struct device_node *node, bool dump, int r,
struct device_d *of_find_device_by_node_path(const char *path);
#define OF_FIND_PATH_FLAGS_BB 1 /* return .bb device if available */
int of_find_path(struct device_node *node, const char *propname, char **outpath, unsigned flags);
+int of_find_path_by_node(struct device_node *node, char **outpath, unsigned flags);
int of_register_fixup(int (*fixup)(struct device_node *, void *), void *context);
int of_unregister_fixup(int (*fixup)(struct device_node *, void *), void *context);
struct device_node *of_find_node_by_alias(struct device_node *root,