diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-08-27 22:53:31 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-08-28 12:29:06 -0400 |
commit | 618718dc56a49321a12f231b34f6c43f44c3c374 (patch) | |
tree | c9277d3a44f0c4c4cbdaeed20e31f8892bfab501 | |
parent | eccad574ef2d74e7519a092d9822932a27c6f165 (diff) |
ASoC: qcom: Constify asoc_qcom_lpass_cpu_dai_ops
asoc_qcom_lpass_cpu_dai_ops is exported and used by multiple drivers,
make it const to prevent modifying it at run time.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/qcom/lpass-cpu.c | 2 | ||||
-rw-r--r-- | sound/soc/qcom/lpass.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c index 23f3d59e6d09..97bc2023f08a 100644 --- a/sound/soc/qcom/lpass-cpu.c +++ b/sound/soc/qcom/lpass-cpu.c | |||
@@ -235,7 +235,7 @@ static int lpass_cpu_daiops_trigger(struct snd_pcm_substream *substream, | |||
235 | return ret; | 235 | return ret; |
236 | } | 236 | } |
237 | 237 | ||
238 | struct snd_soc_dai_ops asoc_qcom_lpass_cpu_dai_ops = { | 238 | const struct snd_soc_dai_ops asoc_qcom_lpass_cpu_dai_ops = { |
239 | .set_sysclk = lpass_cpu_daiops_set_sysclk, | 239 | .set_sysclk = lpass_cpu_daiops_set_sysclk, |
240 | .startup = lpass_cpu_daiops_startup, | 240 | .startup = lpass_cpu_daiops_startup, |
241 | .shutdown = lpass_cpu_daiops_shutdown, | 241 | .shutdown = lpass_cpu_daiops_shutdown, |
diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h index d6e86c119e74..0b63e2e5bcc9 100644 --- a/sound/soc/qcom/lpass.h +++ b/sound/soc/qcom/lpass.h | |||
@@ -93,6 +93,6 @@ int asoc_qcom_lpass_platform_register(struct platform_device *); | |||
93 | int asoc_qcom_lpass_cpu_platform_remove(struct platform_device *pdev); | 93 | int asoc_qcom_lpass_cpu_platform_remove(struct platform_device *pdev); |
94 | int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev); | 94 | int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev); |
95 | int asoc_qcom_lpass_cpu_dai_probe(struct snd_soc_dai *dai); | 95 | int asoc_qcom_lpass_cpu_dai_probe(struct snd_soc_dai *dai); |
96 | extern struct snd_soc_dai_ops asoc_qcom_lpass_cpu_dai_ops; | 96 | extern const struct snd_soc_dai_ops asoc_qcom_lpass_cpu_dai_ops; |
97 | 97 | ||
98 | #endif /* __LPASS_H__ */ | 98 | #endif /* __LPASS_H__ */ |