]> git.karo-electronics.de Git - linux-beck.git/commit
OF: Utility helper functions for dynamic nodes
authorPantelis Antoniou <pantelis.antoniou@konsulko.com>
Fri, 4 Jul 2014 16:58:47 +0000 (19:58 +0300)
committerGrant Likely <grant.likely@linaro.org>
Wed, 16 Jul 2014 14:16:17 +0000 (08:16 -0600)
commit698433963b98d6de7b102c242805c99fda4fa1fb
tree05a223f160742f6659e47cd5accc245934c941ef
parent6afc0dc381573559251de9a8259404f49e6aed14
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>
drivers/of/dynamic.c
drivers/of/of_private.h
drivers/of/selftest.c