]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ALSA: HDA: Mark CS260x immutable structures const
authorDaniel J Blueman <daniel@quora.org>
Sun, 4 Nov 2012 05:19:04 +0000 (13:19 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 5 Nov 2012 11:29:00 +0000 (12:29 +0100)
Mark structures that won't change const.

Signed-off-by: Daniel J Blueman <daniel@quora.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_cirrus.c

index 859a1197e08013e2f5b42fe9ded334c095d83859..d5f3a26d608db72f1e4ef3f596392eb5a4f25a67 100644 (file)
@@ -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,
        .name = "Capture Source",
        .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
@@ -1950,7 +1949,7 @@ static int cs421x_suspend(struct hda_codec *codec)
 }
 #endif
 
-static struct hda_codec_ops cs421x_patch_ops = {
+static const struct hda_codec_ops cs421x_patch_ops = {
        .build_controls = cs421x_build_controls,
        .build_pcms = cs_build_pcms,
        .init = cs421x_init,