Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00e17f76 authored by Daniel J Blueman's avatar Daniel J Blueman Committed by Takashi Iwai
Browse files

ALSA: HDA: Mark CS260x immutable structures const



Mark structures that won't change const.

Signed-off-by: default avatarDaniel J Blueman <daniel@quora.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 16337e02
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -1732,8 +1732,7 @@ static int cs421x_mux_enum_put(struct snd_kcontrol *kcontrol,


}
}


static struct snd_kcontrol_new cs421x_capture_source = {
static const struct snd_kcontrol_new cs421x_capture_source = {

	.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
	.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
	.name = "Capture Source",
	.name = "Capture Source",
	.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
	.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
@@ -1950,7 +1949,7 @@ static int cs421x_suspend(struct hda_codec *codec)
}
}
#endif
#endif


static struct hda_codec_ops cs421x_patch_ops = {
static const struct hda_codec_ops cs421x_patch_ops = {
	.build_controls = cs421x_build_controls,
	.build_controls = cs421x_build_controls,
	.build_pcms = cs_build_pcms,
	.build_pcms = cs_build_pcms,
	.init = cs421x_init,
	.init = cs421x_init,