aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/amba-pl08x.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-23 21:57:12 +0530
committerVinod Koul <vinod.koul@intel.com>2017-08-28 21:11:08 +0530
commitb80fa1217c3c2ad634e3d92ae8bfc6d442ffaeae (patch)
tree315285e7a455ee93308654530bbfc3bd734feeea /drivers/dma/amba-pl08x.c
parentdmaengine: rcar-dmac: initialize all data before registering IRQ handler (diff)
downloadlinux-dev-b80fa1217c3c2ad634e3d92ae8bfc6d442ffaeae.tar.xz
linux-dev-b80fa1217c3c2ad634e3d92ae8bfc6d442ffaeae.zip
dmaengine: pl08x: 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/amba-pl08x.c')
-rw-r--r--drivers/dma/amba-pl08x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index 13cc95c0474c..b52b0d55247e 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -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,