diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-17 06:16:07 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-17 12:56:52 -0400 |
commit | f77bb3b778e85d3477a9e3e0236545663f16793e (patch) | |
tree | 5fadde632566b5f14897eb2c9a7c5d05e81bf1fc | |
parent | 443be77e4b09d98c28196dca7132a1191ecf742b (diff) |
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>
-rw-r--r-- | sound/soc/fsl/fsl_asrc_dma.c | 2 | ||||
-rw-r--r-- | sound/soc/fsl/imx-pcm-fiq.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/fsl/fsl_asrc_dma.c b/sound/soc/fsl/fsl_asrc_dma.c index 2baf19608bd0..e1b97e59275a 100644 --- a/sound/soc/fsl/fsl_asrc_dma.c +++ b/sound/soc/fsl/fsl_asrc_dma.c | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | #define FSL_ASRC_DMABUF_SIZE (256 * 1024) | 21 | #define FSL_ASRC_DMABUF_SIZE (256 * 1024) |
22 | 22 | ||
23 | static struct snd_pcm_hardware snd_imx_hardware = { | 23 | static const struct snd_pcm_hardware snd_imx_hardware = { |
24 | .info = SNDRV_PCM_INFO_INTERLEAVED | | 24 | .info = SNDRV_PCM_INFO_INTERLEAVED | |
25 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 25 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |
26 | SNDRV_PCM_INFO_MMAP | | 26 | SNDRV_PCM_INFO_MMAP | |
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 | |||
154 | return bytes_to_frames(substream->runtime, iprtd->offset); | 154 | return bytes_to_frames(substream->runtime, iprtd->offset); |
155 | } | 155 | } |
156 | 156 | ||
157 | static struct snd_pcm_hardware snd_imx_hardware = { | 157 | static const struct snd_pcm_hardware snd_imx_hardware = { |
158 | .info = SNDRV_PCM_INFO_INTERLEAVED | | 158 | .info = SNDRV_PCM_INFO_INTERLEAVED | |
159 | SNDRV_PCM_INFO_BLOCK_TRANSFER | | 159 | SNDRV_PCM_INFO_BLOCK_TRANSFER | |
160 | SNDRV_PCM_INFO_MMAP | | 160 | SNDRV_PCM_INFO_MMAP | |