diff options
author | Alexander Graf <agraf@suse.de> | 2012-06-20 20:39:59 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-06-24 01:04:51 +0200 |
commit | 45e9dfb2fdd6ab7b60f823a1ee5ed2f2722beaf6 (patch) | |
tree | 9eb91fc9f852340f33203e20ffef30f36172c062 /device_tree.h | |
parent | a053a7cea61da679fe87ce491701f3874ae42371 (diff) |
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>
Diffstat (limited to 'device_tree.h')
-rw-r--r-- | device_tree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device_tree.h b/device_tree.h index 4898d957af..2244270b2d 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, |