dmaengine: pl08x: constify amba_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Wed, 23 Aug 2017 16:27:12 +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/amba-pl08x.c

index 13cc95c0474c7e2b00108a275a3579ee2f40d671..b52b0d55247e3d2bb2a2de283619bf79a2fd4d94 100644 (file)
@@ -3033,7 +3033,7 @@ static struct vendor_data vendor_ftdmac020 = {
        .max_transfer_size = PL080_CONTROL_TRANSFER_SIZE_MASK,
 };
 
-static struct amba_id pl08x_ids[] = {
+static const struct amba_id pl08x_ids[] = {
        /* Samsung PL080S variant */
        {
                .id     = 0x0a141080,