diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-14 08:56:31 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-14 19:15:12 +0300 |
commit | 0cc798651a7796712a7bee1f3c865e82967d933f (patch) | |
tree | 7edea9698429f9e445aeb19855c1cdb4c8d2ddfa /sound/soc/samsung/idma.c | |
parent | fa99125e2acca4e85de57cff55aea9fc7cb2930a (diff) | |
download | linux-0cc798651a7796712a7bee1f3c865e82967d933f.tar.xz |
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/soc/samsung/idma.c')
-rw-r--r-- | sound/soc/samsung/idma.c | 2 |
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, |