aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl/imx-pcm-fiq.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-17 15:46:07 +0530
committerMark Brown <broonie@kernel.org>2017-08-17 17:56:52 +0100
commitf77bb3b778e85d3477a9e3e0236545663f16793e (patch)
tree5fadde632566b5f14897eb2c9a7c5d05e81bf1fc /sound/soc/fsl/imx-pcm-fiq.c
parentASoC: Freescale: Delete an error message for a failed memory allocation in three functions (diff)
downloadlinux-dev-f77bb3b778e85d3477a9e3e0236545663f16793e.tar.xz
linux-dev-f77bb3b778e85d3477a9e3e0236545663f16793e.zip
ASoC: fsl: make snd_pcm_hardware const
Make these const as they are only passed as the 2nd argument to the function snd_soc_set_runtime_hwparams, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@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.c2
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 aef1f7819c40..4e5fefee111e 100644
--- a/sound/soc/fsl/imx-pcm-fiq.c
+++ b/sound/soc/fsl/imx-pcm-fiq.c
@@ -154,7 +154,7 @@ static snd_pcm_uframes_t snd_imx_pcm_pointer(struct snd_pcm_substream *substream
return bytes_to_frames(substream->runtime, iprtd->offset);
}
-static struct snd_pcm_hardware snd_imx_hardware = {
+static const struct snd_pcm_hardware snd_imx_hardware = {
.info = SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER |
SNDRV_PCM_INFO_MMAP |