diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-14 11:26:26 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-14 17:17:53 +0100 |
commit | b6ed072028705620ea2937ddafd77a202df034af (patch) | |
tree | 417e93f9ed792a145da0a1147e2d9caba04e50a9 /sound/soc/fsl/fsl_dma.c | |
parent | 06d15a2ede999a77f0d05aa600ed473d90d9a909 (diff) | |
download | linux-b6ed072028705620ea2937ddafd77a202df034af.tar.bz2 |
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/fsl_dma.c')
-rw-r--r-- | sound/soc/fsl/fsl_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_dma.c b/sound/soc/fsl/fsl_dma.c index ed8ea002902d..979ed1b3ecc4 100644 --- a/sound/soc/fsl/fsl_dma.c +++ b/sound/soc/fsl/fsl_dma.c @@ -870,7 +870,7 @@ static struct device_node *find_ssi_node(struct device_node *dma_channel_np) return NULL; } -static struct snd_pcm_ops fsl_dma_ops = { +static const struct snd_pcm_ops fsl_dma_ops = { .open = fsl_dma_open, .close = fsl_dma_close, .ioctl = snd_pcm_lib_ioctl, |