aboutsummaryrefslogtreecommitdiff
path: root/device_tree.c
diff options
context:
space:
mode:
authorDavid Gibson <dwg@au1.ibm.com>2011-04-01 15:15:09 +1100
committerAlexander Graf <agraf@suse.de>2011-04-01 18:34:54 +0200
commitc48974903051ceb7cfbda23c22c159ea4b482d93 (patch)
tree278a07ca7663a73a4528fd9ac17e8881544b6ea4 /device_tree.c
parent81762d6dd0d430d87024f2c83e9c4dcc4329fb7d (diff)
downloadqemu-c48974903051ceb7cfbda23c22c159ea4b482d93.zip
qemu-c48974903051ceb7cfbda23c22c159ea4b482d93.tar.gz
qemu-c48974903051ceb7cfbda23c22c159ea4b482d93.tar.bz2
Allow qemu_devtree_setprop() to take arbitrary values
Currently qemu_devtree_setprop() expects the new property value to be given as a uint32_t *. While property values consisting of u32s are common, in general they can have any bytestring value. Therefore, this patch alters the function to take a void * instead, allowing callers to easily give anything as the property value. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'device_tree.c')
-rw-r--r--device_tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/device_tree.c b/device_tree.c
index 426a631..21be070 100644
--- a/device_tree.c
+++ b/device_tree.c
@@ -74,7 +74,7 @@ fail:
}
int qemu_devtree_setprop(void *fdt, const char *node_path,
- const char *property, uint32_t *val_array, int size)
+ const char *property, void *val_array, int size)
{
int offset;