diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2015-08-17 14:49:53 +0800 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-08-17 17:04:14 +1000 |
commit | a1218c9589404211d01c633e6c41c95caf2002b0 (patch) | |
tree | ab4e3c7c5e44094b538ac709e3f3263477b97475 /include | |
parent | 9510db25586dee6868a8171607d93174e3d735c8 (diff) | |
download | blackbird-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.h | 3 |
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, |