diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-14 11:26:33 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-14 17:21:25 +0100 |
commit | 5144468efb076b1859477de19257dd7ec9c24ed3 (patch) | |
tree | cd78965c8bd30ac12abe1355503df7496442d86b /sound/soc/txx9 | |
parent | 42271d951c1f9a6a3ae0392d245256d973b2fc58 (diff) | |
download | linux-stable-5144468efb076b1859477de19257dd7ec9c24ed3.tar.gz linux-stable-5144468efb076b1859477de19257dd7ec9c24ed3.tar.bz2 linux-stable-5144468efb076b1859477de19257dd7ec9c24ed3.zip |
ASoC: txx9: 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/txx9')
-rw-r--r-- | sound/soc/txx9/txx9aclc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/txx9/txx9aclc.c b/sound/soc/txx9/txx9aclc.c index 7df95dfa8557..a2bb68fea5a3 100644 --- a/sound/soc/txx9/txx9aclc.c +++ b/sound/soc/txx9/txx9aclc.c @@ -271,7 +271,7 @@ static int txx9aclc_pcm_close(struct snd_pcm_substream *substream) return 0; } -static struct snd_pcm_ops txx9aclc_pcm_ops = { +static const struct snd_pcm_ops txx9aclc_pcm_ops = { .open = txx9aclc_pcm_open, .close = txx9aclc_pcm_close, .ioctl = snd_pcm_lib_ioctl, |