diff options
author | Daniel J Blueman <daniel@quora.org> | 2012-11-04 01:19:04 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-11-05 06:29:00 -0500 |
commit | 00e17f767e3e8d42b83a12af3ed16e3129e4feb0 (patch) | |
tree | c7f33a2d7ceceb936df05de12532c90589ab331b /sound | |
parent | 16337e028a6dae9fbdd718c0d42161540a668ff3 (diff) |
ALSA: HDA: Mark CS260x immutable structures const
Mark structures that won't change const.
Signed-off-by: Daniel J Blueman <daniel@quora.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_cirrus.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c index 859a1197e080..d5f3a26d608d 100644 --- a/sound/pci/hda/patch_cirrus.c +++ b/sound/pci/hda/patch_cirrus.c | |||
@@ -1732,8 +1732,7 @@ static int cs421x_mux_enum_put(struct snd_kcontrol *kcontrol, | |||
1732 | 1732 | ||
1733 | } | 1733 | } |
1734 | 1734 | ||
1735 | static struct snd_kcontrol_new cs421x_capture_source = { | 1735 | static const struct snd_kcontrol_new cs421x_capture_source = { |
1736 | |||
1737 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1736 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1738 | .name = "Capture Source", | 1737 | .name = "Capture Source", |
1739 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE, | 1738 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE, |
@@ -1950,7 +1949,7 @@ static int cs421x_suspend(struct hda_codec *codec) | |||
1950 | } | 1949 | } |
1951 | #endif | 1950 | #endif |
1952 | 1951 | ||
1953 | static struct hda_codec_ops cs421x_patch_ops = { | 1952 | static const struct hda_codec_ops cs421x_patch_ops = { |
1954 | .build_controls = cs421x_build_controls, | 1953 | .build_controls = cs421x_build_controls, |
1955 | .build_pcms = cs_build_pcms, | 1954 | .build_pcms = cs_build_pcms, |
1956 | .init = cs421x_init, | 1955 | .init = cs421x_init, |