diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-03-18 13:43:14 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-03-20 07:25:47 -0400 |
commit | 424dfbf2c0dee6f9c13d43d6d209a6e57a492d57 (patch) | |
tree | c432cf0cee2c73a90144772b3380a41c78631110 | |
parent | 72cedf599fcebfd6cd2550274d7855838068d28c (diff) |
ASoC: mediatek: constify snd_soc_ops structures
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>
-rw-r--r-- | sound/soc/mediatek/mt2701/mt2701-cs42448.c | 2 | ||||
-rw-r--r-- | sound/soc/mediatek/mt8173/mt8173-max98090.c | 2 | ||||
-rw-r--r-- | sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c | 2 | ||||
-rw-r--r-- | sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c | 2 | ||||
-rw-r--r-- | sound/soc/mediatek/mt8173/mt8173-rt5650.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/mediatek/mt2701/mt2701-cs42448.c b/sound/soc/mediatek/mt2701/mt2701-cs42448.c index 1e7e8d43fd8a..aa5b31b121e3 100644 --- a/sound/soc/mediatek/mt2701/mt2701-cs42448.c +++ b/sound/soc/mediatek/mt2701/mt2701-cs42448.c | |||
@@ -129,7 +129,7 @@ static int mt2701_cs42448_fe_ops_startup(struct snd_pcm_substream *substream) | |||
129 | return 0; | 129 | return 0; |
130 | } | 130 | } |
131 | 131 | ||
132 | static struct snd_soc_ops mt2701_cs42448_48k_fe_ops = { | 132 | static const struct snd_soc_ops mt2701_cs42448_48k_fe_ops = { |
133 | .startup = mt2701_cs42448_fe_ops_startup, | 133 | .startup = mt2701_cs42448_fe_ops_startup, |
134 | }; | 134 | }; |
135 | 135 | ||
diff --git a/sound/soc/mediatek/mt8173/mt8173-max98090.c b/sound/soc/mediatek/mt8173/mt8173-max98090.c index 46c8e6ae00b4..e0c2b23ec711 100644 --- a/sound/soc/mediatek/mt8173/mt8173-max98090.c +++ b/sound/soc/mediatek/mt8173/mt8173-max98090.c | |||
@@ -67,7 +67,7 @@ static int mt8173_max98090_hw_params(struct snd_pcm_substream *substream, | |||
67 | SND_SOC_CLOCK_IN); | 67 | SND_SOC_CLOCK_IN); |
68 | } | 68 | } |
69 | 69 | ||
70 | static struct snd_soc_ops mt8173_max98090_ops = { | 70 | static const struct snd_soc_ops mt8173_max98090_ops = { |
71 | .hw_params = mt8173_max98090_hw_params, | 71 | .hw_params = mt8173_max98090_hw_params, |
72 | }; | 72 | }; |
73 | 73 | ||
diff --git a/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c b/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c index 467f7049a288..5e383eb456a4 100644 --- a/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c +++ b/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c | |||
@@ -75,7 +75,7 @@ static int mt8173_rt5650_rt5514_hw_params(struct snd_pcm_substream *substream, | |||
75 | return 0; | 75 | return 0; |
76 | } | 76 | } |
77 | 77 | ||
78 | static struct snd_soc_ops mt8173_rt5650_rt5514_ops = { | 78 | static const struct snd_soc_ops mt8173_rt5650_rt5514_ops = { |
79 | .hw_params = mt8173_rt5650_rt5514_hw_params, | 79 | .hw_params = mt8173_rt5650_rt5514_hw_params, |
80 | }; | 80 | }; |
81 | 81 | ||
diff --git a/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c b/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c index 1b8b2a778845..fed1f15a39c2 100644 --- a/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c +++ b/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c | |||
@@ -79,7 +79,7 @@ static int mt8173_rt5650_rt5676_hw_params(struct snd_pcm_substream *substream, | |||
79 | return 0; | 79 | return 0; |
80 | } | 80 | } |
81 | 81 | ||
82 | static struct snd_soc_ops mt8173_rt5650_rt5676_ops = { | 82 | static const struct snd_soc_ops mt8173_rt5650_rt5676_ops = { |
83 | .hw_params = mt8173_rt5650_rt5676_hw_params, | 83 | .hw_params = mt8173_rt5650_rt5676_hw_params, |
84 | }; | 84 | }; |
85 | 85 | ||
diff --git a/sound/soc/mediatek/mt8173/mt8173-rt5650.c b/sound/soc/mediatek/mt8173/mt8173-rt5650.c index ba65f4157a7e..a78470839b65 100644 --- a/sound/soc/mediatek/mt8173/mt8173-rt5650.c +++ b/sound/soc/mediatek/mt8173/mt8173-rt5650.c | |||
@@ -105,7 +105,7 @@ static int mt8173_rt5650_hw_params(struct snd_pcm_substream *substream, | |||
105 | return 0; | 105 | return 0; |
106 | } | 106 | } |
107 | 107 | ||
108 | static struct snd_soc_ops mt8173_rt5650_ops = { | 108 | static const struct snd_soc_ops mt8173_rt5650_ops = { |
109 | .hw_params = mt8173_rt5650_hw_params, | 109 | .hw_params = mt8173_rt5650_hw_params, |
110 | }; | 110 | }; |
111 | 111 | ||