summaryrefslogtreecommitdiffstats
path: root/drivers/dma/sh/shdma.h
diff options
context:
space:
mode:
authorGuennadi Liakhovetski2013-08-02 16:18:09 +0200
committerVinod Koul2013-08-27 10:55:03 +0200
commit2833c47e0ecc74b300716e56810143125ad7a3f1 (patch)
treeadda4f1edcfe1f7b3eff355c9577c9bcad76931d /drivers/dma/sh/shdma.h
parentDMA: sudmac: fix compiler warning (diff)
downloadkernel-qcow2-linux-2833c47e0ecc74b300716e56810143125ad7a3f1.tar.gz
kernel-qcow2-linux-2833c47e0ecc74b300716e56810143125ad7a3f1.tar.xz
kernel-qcow2-linux-2833c47e0ecc74b300716e56810143125ad7a3f1.zip
DMA: shdma: make a pointer const
Platform data shouldn't be changed at run-time, so, pointers to it should be const. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/sh/shdma.h')
-rw-r--r--drivers/dma/sh/shdma.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/sh/shdma.h b/drivers/dma/sh/shdma.h
index 06aae6ebc82b..3d9dca177860 100644
--- a/drivers/dma/sh/shdma.h
+++ b/drivers/dma/sh/shdma.h
@@ -36,7 +36,7 @@ struct sh_dmae_chan {
struct sh_dmae_device {
struct shdma_dev shdma_dev;
struct sh_dmae_chan *chan[SH_DMAE_MAX_CHANNELS];
- struct sh_dmae_pdata *pdata;
+ const struct sh_dmae_pdata *pdata;
struct list_head node;
void __iomem *chan_reg;
void __iomem *dmars;