From: Alexander Graf Date: Wed, 20 Jun 2012 18:39:59 +0000 (+0200) Subject: dt: make setprop argument static X-Git-Tag: v1.2.0-rc0~249^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=45e9dfb2fdd6ab7b60f823a1ee5ed2f2722beaf6;p=thirdparty%2Fqemu.git 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 Reviewed-by: Peter Crosthwaite --- diff --git a/device_tree.c b/device_tree.c index acae53e6b63..b366fddeaf3 100644 --- a/device_tree.c +++ b/device_tree.c @@ -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; diff --git a/device_tree.h b/device_tree.h index 4898d957afb..2244270b2d1 100644 --- a/device_tree.h +++ b/device_tree.h @@ -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,