summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-14 07:56:31 +0200
committerMark Brown <broonie@kernel.org>2017-08-14 18:15:12 +0200
commit0cc798651a7796712a7bee1f3c865e82967d933f (patch)
tree7edea9698429f9e445aeb19855c1cdb4c8d2ddfa /sound
parentASoC: samsung: make tm2_dapm_widgets and tm2_pm_ops static (diff)
downloadlinux-0cc798651a7796712a7bee1f3c865e82967d933f.tar.xz
linux-0cc798651a7796712a7bee1f3c865e82967d933f.zip
ASoC: samsung: constify snd_pcm_ops structures
snd_pcm_ops are not supposed to change at runtime. All functions working with snd_pcm_ops provided by <sound/soc.h> work with const snd_pcm_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/samsung/idma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/samsung/idma.c b/sound/soc/samsung/idma.c
index 3e408158625d..5c59c95c5ade 100644
--- a/sound/soc/samsung/idma.c
+++ b/sound/soc/samsung/idma.c
@@ -325,7 +325,7 @@ static int idma_close(struct snd_pcm_substream *substream)
return 0;
}
-static struct snd_pcm_ops idma_ops = {
+static const struct snd_pcm_ops idma_ops = {
.open = idma_open,
.close = idma_close,
.ioctl = snd_pcm_lib_ioctl,