diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-23 18:27:12 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-08-28 17:41:08 +0200 |
commit | b80fa1217c3c2ad634e3d92ae8bfc6d442ffaeae (patch) | |
tree | 315285e7a455ee93308654530bbfc3bd734feeea /drivers/dma/amba-pl08x.c | |
parent | dmaengine: rcar-dmac: initialize all data before registering IRQ handler (diff) | |
download | linux-b80fa1217c3c2ad634e3d92ae8bfc6d442ffaeae.tar.xz linux-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.c | 2 |
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, |