summaryrefslogtreecommitdiff
path: root/drivers/vfio
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-23 22:47:15 +0530
committerAlex Williamson <alex.williamson@redhat.com>2017-08-30 14:03:42 -0600
commit417fb50d5516e8526769c16ff5b92de47adbe727 (patch)
tree95184e91a17b89957c53425a192f20d8b2ffeb20 /drivers/vfio
parent6586b561a91cd80a91c8f107ed0d144feb3eadc2 (diff)
downloadlwn-417fb50d5516e8526769c16ff5b92de47adbe727.tar.gz
lwn-417fb50d5516e8526769c16ff5b92de47adbe727.zip
vfio: platform: constify amba_id
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>
Diffstat (limited to 'drivers/vfio')
-rw-r--r--drivers/vfio/platform/vfio_amba.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vfio/platform/vfio_amba.c b/drivers/vfio/platform/vfio_amba.c
index 31372fbf6c5b..62dfbfeaabfc 100644
--- a/drivers/vfio/platform/vfio_amba.c
+++ b/drivers/vfio/platform/vfio_amba.c
@@ -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 },
};