diff options
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | 2013-11-11 18:15:21 +1000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-12-20 01:58:12 +0100 |
commit | be5907f2cc6d075b1d687e51a0e0d8ac074a7ac8 (patch) | |
tree | 1b12522591d40c8ac107a9acdb4e7931b3bf108e /device_tree.c | |
parent | 5a4348d1114b7f3dccc578e39e33ef07a1cfabc7 (diff) | |
download | qemu-be5907f2cc6d075b1d687e51a0e0d8ac074a7ac8.zip qemu-be5907f2cc6d075b1d687e51a0e0d8ac074a7ac8.tar.gz qemu-be5907f2cc6d075b1d687e51a0e0d8ac074a7ac8.tar.bz2 |
device_tree: qemu_fdt_setprop: Rename val_array arg
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>
Diffstat (limited to 'device_tree.c')
-rw-r--r-- | device_tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/device_tree.c b/device_tree.c index ec8e776..ca83504 100644 --- a/device_tree.c +++ b/device_tree.c @@ -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)); |