dmaengine: pl330: constify amba_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Wed, 23 Aug 2017 16:27:31 +0000 (21:57 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 28 Aug 2017 15:41:08 +0000 (21:11 +0530)
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>
drivers/dma/pl330.c

index b19ee04567b57732a6519bd8fa18ace3a1c201ef..f122c2a7b9f0bc7383ac5114107fb4aac018066d 100644 (file)
@@ -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,