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>
This commit is contained in:
@@ -1016,25 +1016,25 @@ static int isabelle_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt)
|
||||
#define ISABELLE_FORMATS (SNDRV_PCM_FMTBIT_S20_3LE |\
|
||||
SNDRV_PCM_FMTBIT_S32_LE)
|
||||
|
||||
static struct snd_soc_dai_ops isabelle_hs_dai_ops = {
|
||||
static const struct snd_soc_dai_ops isabelle_hs_dai_ops = {
|
||||
.hw_params = isabelle_hw_params,
|
||||
.set_fmt = isabelle_set_dai_fmt,
|
||||
.digital_mute = isabelle_hs_mute,
|
||||
};
|
||||
|
||||
static struct snd_soc_dai_ops isabelle_hf_dai_ops = {
|
||||
static const struct snd_soc_dai_ops isabelle_hf_dai_ops = {
|
||||
.hw_params = isabelle_hw_params,
|
||||
.set_fmt = isabelle_set_dai_fmt,
|
||||
.digital_mute = isabelle_hf_mute,
|
||||
};
|
||||
|
||||
static struct snd_soc_dai_ops isabelle_line_dai_ops = {
|
||||
static const struct snd_soc_dai_ops isabelle_line_dai_ops = {
|
||||
.hw_params = isabelle_hw_params,
|
||||
.set_fmt = isabelle_set_dai_fmt,
|
||||
.digital_mute = isabelle_line_mute,
|
||||
};
|
||||
|
||||
static struct snd_soc_dai_ops isabelle_ul_dai_ops = {
|
||||
static const struct snd_soc_dai_ops isabelle_ul_dai_ops = {
|
||||
.hw_params = isabelle_hw_params,
|
||||
.set_fmt = isabelle_set_dai_fmt,
|
||||
};
|
||||
|
Reference in New Issue
Block a user