summaryrefslogtreecommitdiffstats
path: root/drivers/dma/pl330.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-23 18:27:31 +0200
committerVinod Koul <vinod.koul@intel.com>2017-08-28 17:41:08 +0200
commitb753351ec8f4c6a25c6d9b5c4eccce62e448a571 (patch)
tree495a1c28c4a3b538d0851858a99511cd7d0b3daf /drivers/dma/pl330.c
parentdmaengine: pl08x: constify amba_id (diff)
downloadlinux-b753351ec8f4c6a25c6d9b5c4eccce62e448a571.tar.xz
linux-b753351ec8f4c6a25c6d9b5c4eccce62e448a571.zip
dmaengine: pl330: 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: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/pl330.c')
-rw-r--r--drivers/dma/pl330.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index b19ee04567b5..f122c2a7b9f0 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -3023,7 +3023,7 @@ static int pl330_remove(struct amba_device *adev)
return 0;
}
-static struct amba_id pl330_ids[] = {
+static const struct amba_id pl330_ids[] = {
{
.id = 0x00041330,
.mask = 0x000fffff,