mirror of
https://github.com/qemu/qemu.git
synced 2024-11-23 19:03:38 +08:00
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>
This commit is contained in:
parent
5a4348d111
commit
be5907f2cc
@ -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));
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user