summaryrefslogtreecommitdiff
path: root/sound/soc/kirkwood/kirkwood-dma.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-09-27 21:35:47 +0530
committerMark Brown <broonie@kernel.org>2017-09-27 10:02:18 -0700
commitf5fe8c4589740bf45fd19c348e67981e977697cb (patch)
tree3f0f10d2b7323c329c9d7619c31a2acd1dfe875f /sound/soc/kirkwood/kirkwood-dma.c
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff)
ASoC: kirkwood: make kirkwood_soc_platform const
Make kirkwood_soc_platform const as it only passed to a const argument of the function snd_soc_register_platform in the file referencing it. Make the declaration const too. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/kirkwood/kirkwood-dma.c')
-rw-r--r--sound/soc/kirkwood/kirkwood-dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/kirkwood/kirkwood-dma.c b/sound/soc/kirkwood/kirkwood-dma.c
index cf23af159acf..505b0ff03c3b 100644
--- a/sound/soc/kirkwood/kirkwood-dma.c
+++ b/sound/soc/kirkwood/kirkwood-dma.c
@@ -318,7 +318,7 @@ static void kirkwood_dma_free_dma_buffers(struct snd_pcm *pcm)
}
}
-struct snd_soc_platform_driver kirkwood_soc_platform = {
+const struct snd_soc_platform_driver kirkwood_soc_platform = {
.ops = &kirkwood_dma_ops,
.pcm_new = kirkwood_dma_new,
.pcm_free = kirkwood_dma_free_dma_buffers,