ASoC: Constify snd_soc_dai_ops variables
The snd_soc_dai_ops variables are not modified after initialization in these drivers, so make them const. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
这个提交包含在:
@@ -520,7 +520,7 @@ static const struct dev_pm_ops tas2552_pm = {
|
||||
NULL)
|
||||
};
|
||||
|
||||
static struct snd_soc_dai_ops tas2552_speaker_dai_ops = {
|
||||
static const struct snd_soc_dai_ops tas2552_speaker_dai_ops = {
|
||||
.hw_params = tas2552_hw_params,
|
||||
.prepare = tas2552_prepare,
|
||||
.set_sysclk = tas2552_set_dai_sysclk,
|
||||
|
在新工单中引用
屏蔽一个用户