From c48974903051ceb7cfbda23c22c159ea4b482d93 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Fri, 1 Apr 2011 15:15:09 +1100 Subject: 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 Signed-off-by: Alexander Graf --- device_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'device_tree.c') diff --git a/device_tree.c b/device_tree.c index 426a63155c..21be070759 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; -- cgit v1.2.3