summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2015-08-17 14:49:53 +0800
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-08-17 17:04:14 +1000
commita1218c9589404211d01c633e6c41c95caf2002b0 (patch)
treeab4e3c7c5e44094b538ac709e3f3263477b97475 /include
parent9510db25586dee6868a8171607d93174e3d735c8 (diff)
downloadblackbird-skiboot-a1218c9589404211d01c633e6c41c95caf2002b0.tar.gz
blackbird-skiboot-a1218c9589404211d01c633e6c41c95caf2002b0.zip
core: Add dt_copy
This change adds a new function to copy a device tree node to a new parent. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/device.h b/include/device.h
index b3019586..a0fc280a 100644
--- a/include/device.h
+++ b/include/device.h
@@ -68,6 +68,9 @@ struct dt_node *dt_new_addr(struct dt_node *parent, const char *name,
struct dt_node *dt_new_2addr(struct dt_node *parent, const char *name,
uint64_t unit_addr0, uint64_t unit_addr1);
+/* Copy node to new parent, including properties and subnodes */
+struct dt_node *dt_copy(struct dt_node *node, struct dt_node *parent);
+
/* Add a property node, various forms. */
struct dt_property *dt_add_property(struct dt_node *node,
const char *name,
OpenPOWER on IntegriCloud