diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-17 12:16:07 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-17 18:56:52 +0200 |
commit | f77bb3b778e85d3477a9e3e0236545663f16793e (patch) | |
tree | 5fadde632566b5f14897eb2c9a7c5d05e81bf1fc /sound/soc/fsl/imx-pcm-fiq.c | |
parent | ASoC: Freescale: Delete an error message for a failed memory allocation in th... (diff) | |
download | linux-f77bb3b778e85d3477a9e3e0236545663f16793e.tar.xz linux-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.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 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 | |