summaryrefslogtreecommitdiff
path: root/sound/soc/omap
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-14 14:38:44 +0300
committerMark Brown <broonie@kernel.org>2017-08-14 19:19:24 +0300
commit27bfda02662152f5e0d17731063cfcb342904b58 (patch)
treeab7bd98ef6de7c87f923600a2ec59d72eda5aadb /sound/soc/omap
parent3a7f221723a6f0032a7d908f3f91ab8604f0311f (diff)
downloadlinux-27bfda02662152f5e0d17731063cfcb342904b58.tar.xz
ASoC: omap: make snd_soc_platform_driver const
Make this const as it is only passed as the 2nd argument to the function devm_snd_soc_register_platform, which is of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/omap')
-rw-r--r--sound/soc/omap/omap-pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c
index e2f12450fb66..aca2c43d0f03 100644
--- a/sound/soc/omap/omap-pcm.c
+++ b/sound/soc/omap/omap-pcm.c
@@ -243,7 +243,7 @@ out:
return ret;
}
-static struct snd_soc_platform_driver omap_soc_platform = {
+static const struct snd_soc_platform_driver omap_soc_platform = {
.ops = &omap_pcm_ops,
.pcm_new = omap_pcm_new,
.pcm_free = omap_pcm_free_dma_buffers,