vfio: platform: constify amba_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Wed, 23 Aug 2017 17:17:15 +0000 (22:47 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 30 Aug 2017 20:03:42 +0000 (14:03 -0600)
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>
drivers/vfio/platform/vfio_amba.c

index 31372fbf6c5bab9edb4de52b62d662ec8e3cc2d1..62dfbfeaabfc59c3adcfbc9565e672f81bf21176 100644 (file)
@@ -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 },
 };