summaryrefslogtreecommitdiffstats
path: root/sound/soc/qcom
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-17 15:46:12 +0530
committerMark Brown <broonie@kernel.org>2017-08-17 17:57:55 +0100
commit193e25e1fe822f30a02aa9bf99880345eb242d35 (patch)
treec3ca9c46f223acffd79ce78328cb9e9da2e37b57 /sound/soc/qcom
parent50d50c33d29a868bd58e0f320c19b9e9e7084a2a (diff)
downloadblackbird-obmc-linux-193e25e1fe822f30a02aa9bf99880345eb242d35.tar.gz
blackbird-obmc-linux-193e25e1fe822f30a02aa9bf99880345eb242d35.zip
ASoC: qcom: make snd_pcm_hardware const
Make this const as it is either passed as the 2nd argument to the function snd_soc_set_runtime_hwparams, which is const or used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom')
-rw-r--r--sound/soc/qcom/lpass-platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/qcom/lpass-platform.c b/sound/soc/qcom/lpass-platform.c
index fb3576af7911..e1945e1772cd 100644
--- a/sound/soc/qcom/lpass-platform.c
+++ b/sound/soc/qcom/lpass-platform.c
@@ -32,7 +32,7 @@ struct lpass_pcm_data {
#define LPASS_PLATFORM_BUFFER_SIZE (16 * 1024)
#define LPASS_PLATFORM_PERIODS 2
-static struct snd_pcm_hardware lpass_platform_pcm_hardware = {
+static const struct snd_pcm_hardware lpass_platform_pcm_hardware = {
.info = SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID |
SNDRV_PCM_INFO_INTERLEAVED |
OpenPOWER on IntegriCloud