mirror of
https://github.com/xemu-project/xemu.git
synced 2025-04-02 11:11:48 -04:00
dt: make setprop argument static
Whatever we pass in to qemu_devtree_setprop to put into the device tree will not get modified by that function, so it can easily be declared const. Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Peter Crosthwaite <peter.crosthwaite@petalogix.com>
This commit is contained in:
parent
a053a7cea6
commit
45e9dfb2fd
2 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ static int findnode_nofail(void *fdt, const char *node_path)
|
|||
}
|
||||
|
||||
int qemu_devtree_setprop(void *fdt, const char *node_path,
|
||||
const char *property, void *val_array, int size)
|
||||
const char *property, const void *val_array, int size)
|
||||
{
|
||||
int r;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ void *create_device_tree(int *sizep);
|
|||
void *load_device_tree(const char *filename_path, int *sizep);
|
||||
|
||||
int qemu_devtree_setprop(void *fdt, const char *node_path,
|
||||
const char *property, void *val_array, int size);
|
||||
const char *property, const void *val_array, int size);
|
||||
int qemu_devtree_setprop_cell(void *fdt, const char *node_path,
|
||||
const char *property, uint32_t val);
|
||||
int qemu_devtree_setprop_u64(void *fdt, const char *node_path,
|
||||
|
|
Loading…
Add table
Reference in a new issue