diff options
author | Pantelis Antoniou <pantelis.antoniou@konsulko.com> | 2014-07-04 19:58:47 +0300 |
---|---|---|
committer | Grant Likely <grant.likely@linaro.org> | 2014-07-16 08:16:17 -0600 |
commit | 698433963b98d6de7b102c242805c99fda4fa1fb (patch) | |
tree | 05a223f160742f6659e47cd5accc245934c941ef /drivers/of/base.c | |
parent | 6afc0dc381573559251de9a8259404f49e6aed14 (diff) |
OF: Utility helper functions for dynamic nodes
Introduce helper functions for working with the live DT tree,
all of them related to dynamically adding/removing nodes and
properties.
__of_prop_dup() copies a property dynamically
__of_node_alloc() creates an empty node
Bug fix about prop->len == 0 by Ionut Nicu <ioan.nicu.ext@nsn.com>
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
[glikely: Added unittest for of_copy_property and dropped fine-grained allocations]
[glikely: removed name, type and phandle arguments from __of_node_alloc]
Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/of/base.c')
0 files changed, 0 insertions, 0 deletions