summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2017-10-12 12:26:57 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-10-17 08:46:08 +0200
commit2aec5f446763fe9075a9625f8197efdd19f9d7f3 (patch)
treeb1f8af73eef3794f52322d5ff4362388d957346a /include
parentfb639086d37bb0731562405edbda7f9e842c498f (diff)
downloadbarebox-2aec5f446763fe9075a9625f8197efdd19f9d7f3.tar.gz
barebox-2aec5f446763fe9075a9625f8197efdd19f9d7f3.tar.xz
of: base: add function to copy a device tree node
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/of.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index 9ba771a395..18a423241b 100644
--- a/include/of.h
+++ b/include/of.h
@@ -144,6 +144,8 @@ extern struct device_node *of_new_node(struct device_node *parent,
const char *name);
extern struct device_node *of_create_node(struct device_node *root,
const char *path);
+extern struct device_node *of_copy_node(struct device_node *parent,
+ const struct device_node *other);
extern void of_delete_node(struct device_node *node);
extern int of_machine_is_compatible(const char *compat);