diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-14 08:56:26 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-14 19:17:53 +0300 |
commit | b6ed072028705620ea2937ddafd77a202df034af (patch) | |
tree | 417e93f9ed792a145da0a1147e2d9caba04e50a9 /sound/soc/fsl/imx-pcm-fiq.c | |
parent | 06d15a2ede999a77f0d05aa600ed473d90d9a909 (diff) | |
download | linux-b6ed072028705620ea2937ddafd77a202df034af.tar.xz |
ASoC: fsl: 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/fsl/imx-pcm-fiq.c')
-rw-r--r-- | sound/soc/fsl/imx-pcm-fiq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-pcm-fiq.c b/sound/soc/fsl/imx-pcm-fiq.c index 92410f7ca1fa..9ce37616ef5d 100644 --- a/sound/soc/fsl/imx-pcm-fiq.c +++ b/sound/soc/fsl/imx-pcm-fiq.c @@ -227,7 +227,7 @@ static int snd_imx_pcm_mmap(struct snd_pcm_substream *substream, return ret; } -static struct snd_pcm_ops imx_pcm_ops = { +static const struct snd_pcm_ops imx_pcm_ops = { .open = snd_imx_open, .close = snd_imx_close, .ioctl = snd_pcm_lib_ioctl, |