]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: mediatek: constify snd_soc_ops structures
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 18 Mar 2017 17:43:14 +0000 (23:13 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 20 Mar 2017 11:25:47 +0000 (11:25 +0000)
Declare snd_soc_ops structures as const as they are only stored
in the ops field of a snd_soc_dai_link structure. This field is
of type const, so snd_soc_ops structures having this property
can be made const too.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt2701/mt2701-cs42448.c
sound/soc/mediatek/mt8173/mt8173-max98090.c
sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c
sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c
sound/soc/mediatek/mt8173/mt8173-rt5650.c

index 1e7e8d43fd8a31732fc43a85a3393b23a7e5df27..aa5b31b121e322dd7d85fa4007841f2d7a977481 100644 (file)
@@ -129,7 +129,7 @@ static int mt2701_cs42448_fe_ops_startup(struct snd_pcm_substream *substream)
        return 0;
 }
 
-static struct snd_soc_ops mt2701_cs42448_48k_fe_ops = {
+static const struct snd_soc_ops mt2701_cs42448_48k_fe_ops = {
        .startup = mt2701_cs42448_fe_ops_startup,
 };
 
index 46c8e6ae00b4046f189e2b2569d9344a013fe61f..e0c2b23ec711840bedaac375489dabcc1a50b2f5 100644 (file)
@@ -67,7 +67,7 @@ static int mt8173_max98090_hw_params(struct snd_pcm_substream *substream,
                                      SND_SOC_CLOCK_IN);
 }
 
-static struct snd_soc_ops mt8173_max98090_ops = {
+static const struct snd_soc_ops mt8173_max98090_ops = {
        .hw_params = mt8173_max98090_hw_params,
 };
 
index 467f7049a28863fca5f3750fb27bf1ad9369e0c3..5e383eb456a4b22d1adc6aca0d65efa7b53a350c 100644 (file)
@@ -75,7 +75,7 @@ static int mt8173_rt5650_rt5514_hw_params(struct snd_pcm_substream *substream,
        return 0;
 }
 
-static struct snd_soc_ops mt8173_rt5650_rt5514_ops = {
+static const struct snd_soc_ops mt8173_rt5650_rt5514_ops = {
        .hw_params = mt8173_rt5650_rt5514_hw_params,
 };
 
index 1b8b2a77884505515460a477309bb658312aed2a..fed1f15a39c24003885afe273d340a98c8599756 100644 (file)
@@ -79,7 +79,7 @@ static int mt8173_rt5650_rt5676_hw_params(struct snd_pcm_substream *substream,
        return 0;
 }
 
-static struct snd_soc_ops mt8173_rt5650_rt5676_ops = {
+static const struct snd_soc_ops mt8173_rt5650_rt5676_ops = {
        .hw_params = mt8173_rt5650_rt5676_hw_params,
 };
 
index ba65f4157a7e0ef6a60e5406e2570cfb1aaa14d9..a78470839b65e0edcd5d69dd599a6b398dc340a0 100644 (file)
@@ -105,7 +105,7 @@ static int mt8173_rt5650_hw_params(struct snd_pcm_substream *substream,
        return 0;
 }
 
-static struct snd_soc_ops mt8173_rt5650_ops = {
+static const struct snd_soc_ops mt8173_rt5650_ops = {
        .hw_params = mt8173_rt5650_hw_params,
 };