summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-14 11:26:31 +0530
committerMark Brown <broonie@kernel.org>2017-08-14 17:15:12 +0100
commit0cc798651a7796712a7bee1f3c865e82967d933f (patch)
tree7edea9698429f9e445aeb19855c1cdb4c8d2ddfa
parentfa99125e2acca4e85de57cff55aea9fc7cb2930a (diff)
downloadop-kernel-dev-0cc798651a7796712a7bee1f3c865e82967d933f.zip
op-kernel-dev-0cc798651a7796712a7bee1f3c865e82967d933f.tar.gz
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>
-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 3e40815..5c59c95 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,
OpenPOWER on IntegriCloud