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:
@@ -1291,35 +1291,35 @@ static int lm49453_set_bias_level(struct snd_soc_codec *codec,
|
||||
#define LM49453_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
|
||||
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)
|
||||
|
||||
static struct snd_soc_dai_ops lm49453_headset_dai_ops = {
|
||||
static const struct snd_soc_dai_ops lm49453_headset_dai_ops = {
|
||||
.hw_params = lm49453_hw_params,
|
||||
.set_sysclk = lm49453_set_dai_sysclk,
|
||||
.set_fmt = lm49453_set_dai_fmt,
|
||||
.digital_mute = lm49453_hp_mute,
|
||||
};
|
||||
|
||||
static struct snd_soc_dai_ops lm49453_speaker_dai_ops = {
|
||||
static const struct snd_soc_dai_ops lm49453_speaker_dai_ops = {
|
||||
.hw_params = lm49453_hw_params,
|
||||
.set_sysclk = lm49453_set_dai_sysclk,
|
||||
.set_fmt = lm49453_set_dai_fmt,
|
||||
.digital_mute = lm49453_ls_mute,
|
||||
};
|
||||
|
||||
static struct snd_soc_dai_ops lm49453_haptic_dai_ops = {
|
||||
static const struct snd_soc_dai_ops lm49453_haptic_dai_ops = {
|
||||
.hw_params = lm49453_hw_params,
|
||||
.set_sysclk = lm49453_set_dai_sysclk,
|
||||
.set_fmt = lm49453_set_dai_fmt,
|
||||
.digital_mute = lm49453_ha_mute,
|
||||
};
|
||||
|
||||
static struct snd_soc_dai_ops lm49453_ep_dai_ops = {
|
||||
static const struct snd_soc_dai_ops lm49453_ep_dai_ops = {
|
||||
.hw_params = lm49453_hw_params,
|
||||
.set_sysclk = lm49453_set_dai_sysclk,
|
||||
.set_fmt = lm49453_set_dai_fmt,
|
||||
.digital_mute = lm49453_ep_mute,
|
||||
};
|
||||
|
||||
static struct snd_soc_dai_ops lm49453_lineout_dai_ops = {
|
||||
static const struct snd_soc_dai_ops lm49453_lineout_dai_ops = {
|
||||
.hw_params = lm49453_hw_params,
|
||||
.set_sysclk = lm49453_set_dai_sysclk,
|
||||
.set_fmt = lm49453_set_dai_fmt,
|
||||
|
Reference in New Issue
Block a user