ASoC: qcom: Constify asoc_qcom_lpass_cpu_dai_ops
authorAxel Lin <axel.lin@ingics.com>
Fri, 28 Aug 2015 02:53:31 +0000 (10:53 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 28 Aug 2015 16:29:06 +0000 (17:29 +0100)
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>
sound/soc/qcom/lpass-cpu.c
sound/soc/qcom/lpass.h

index 23f3d59e6d0957db55a6cd204107bf1b70400d37..97bc2023f08aa81fff0b1524b6fb0f34e992c23b 100644 (file)
@@ -235,7 +235,7 @@ static int lpass_cpu_daiops_trigger(struct snd_pcm_substream *substream,
        return ret;
 }
 
-struct snd_soc_dai_ops asoc_qcom_lpass_cpu_dai_ops = {
+const struct snd_soc_dai_ops asoc_qcom_lpass_cpu_dai_ops = {
        .set_sysclk     = lpass_cpu_daiops_set_sysclk,
        .startup        = lpass_cpu_daiops_startup,
        .shutdown       = lpass_cpu_daiops_shutdown,
index d6e86c119e74909822c8e6cccd218b318f2858c2..0b63e2e5bcc925c3054096e530d454da838d5b1d 100644 (file)
@@ -93,6 +93,6 @@ int asoc_qcom_lpass_platform_register(struct platform_device *);
 int asoc_qcom_lpass_cpu_platform_remove(struct platform_device *pdev);
 int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev);
 int asoc_qcom_lpass_cpu_dai_probe(struct snd_soc_dai *dai);
-extern struct snd_soc_dai_ops asoc_qcom_lpass_cpu_dai_ops;
+extern const struct snd_soc_dai_ops asoc_qcom_lpass_cpu_dai_ops;
 
 #endif /* __LPASS_H__ */