mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
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>
This commit is contained in:
parent
72cedf599f
commit
424dfbf2c0
5 changed files with 5 additions and 5 deletions
|
@ -129,7 +129,7 @@ static int mt2701_cs42448_fe_ops_startup(struct snd_pcm_substream *substream)
|
||||||
return 0;
|
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,
|
.startup = mt2701_cs42448_fe_ops_startup,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@ static int mt8173_max98090_hw_params(struct snd_pcm_substream *substream,
|
||||||
SND_SOC_CLOCK_IN);
|
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,
|
.hw_params = mt8173_max98090_hw_params,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ static int mt8173_rt5650_rt5514_hw_params(struct snd_pcm_substream *substream,
|
||||||
return 0;
|
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,
|
.hw_params = mt8173_rt5650_rt5514_hw_params,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,7 @@ static int mt8173_rt5650_rt5676_hw_params(struct snd_pcm_substream *substream,
|
||||||
return 0;
|
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,
|
.hw_params = mt8173_rt5650_rt5676_hw_params,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ static int mt8173_rt5650_hw_params(struct snd_pcm_substream *substream,
|
||||||
return 0;
|
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,
|
.hw_params = mt8173_rt5650_hw_params,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue