Skip to content

Commit

Permalink
vfio: platform: constify amba_id
Browse files Browse the repository at this point in the history
amba_id are not supposed to change at runtime. All functions
working with const amba_id. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  • Loading branch information
Arvind Yadav authored and Alex Williamson committed Aug 30, 2017
1 parent 6586b56 commit 417fb50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/vfio/platform/vfio_amba.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static int vfio_amba_remove(struct amba_device *adev)
return -EINVAL;
}

static struct amba_id pl330_ids[] = {
static const struct amba_id pl330_ids[] = {
{ 0, 0 },
};

Expand Down

0 comments on commit 417fb50

Please sign in to comment.