From 45e9dfb2fdd6ab7b60f823a1ee5ed2f2722beaf6 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Wed, 20 Jun 2012 20:39:59 +0200 Subject: 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 --- device_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'device_tree.c') diff --git a/device_tree.c b/device_tree.c index acae53e6b6..b366fddeaf 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; -- cgit v1.2.1