Skip to content

Commit

Permalink
dt: make setprop argument static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
agraf committed Jun 23, 2012
1 parent a053a7c commit 45e9dfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion device_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion device_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 45e9dfb

Please sign in to comment.