]> git.proxmox.com Git - mirror_qemu.git/commitdiff
device_tree: qemu_fdt_setprop: Rename val_array arg
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Mon, 11 Nov 2013 08:15:21 +0000 (18:15 +1000)
committerAlexander Graf <agraf@suse.de>
Fri, 20 Dec 2013 00:58:12 +0000 (01:58 +0100)
Looking at the implementation, this doesn't really have a lot to do
with arrays. Its just a pointer to a buffer and is passed through
to the wrapped fn (qemu_fdt_setprop) unchanged. So rename to make it
consistent with libfdt, which in the wrapped function just calls it
"val".

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
device_tree.c
include/sysemu/device_tree.h

index ec8e7764765de6bfdd1324ca25adbe031cf3ca32..ca83504819823cba7ab9656372a001a7771b4e4b 100644 (file)
@@ -132,11 +132,11 @@ static int findnode_nofail(void *fdt, const char *node_path)
 }
 
 int qemu_fdt_setprop(void *fdt, const char *node_path,
-                     const char *property, const void *val_array, int size)
+                     const char *property, const void *val, int size)
 {
     int r;
 
-    r = fdt_setprop(fdt, findnode_nofail(fdt, node_path), property, val_array, size);
+    r = fdt_setprop(fdt, findnode_nofail(fdt, node_path), property, val, size);
     if (r < 0) {
         fprintf(stderr, "%s: Couldn't set %s/%s: %s\n", __func__, node_path,
                 property, fdt_strerror(r));
index 68da97a3b44e7e3a687c8d3f599578866b805987..899f05c1381b7d12fb62145e1e5aec56b5759034 100644 (file)
@@ -18,7 +18,7 @@ void *create_device_tree(int *sizep);
 void *load_device_tree(const char *filename_path, int *sizep);
 
 int qemu_fdt_setprop(void *fdt, const char *node_path,
-                     const char *property, const void *val_array, int size);
+                     const char *property, const void *val, int size);
 int qemu_fdt_setprop_cell(void *fdt, const char *node_path,
                           const char *property, uint32_t val);
 int qemu_fdt_setprop_u64(void *fdt, const char *node_path,