Skip to content

Commit

Permalink
ALSA: HDA: Mark CS260x immutable structures const
Browse files Browse the repository at this point in the history
Mark structures that won't change const.

Signed-off-by: Daniel J Blueman <daniel@quora.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Daniel J Blueman authored and Takashi Iwai committed Nov 5, 2012
1 parent 16337e0 commit 00e17f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sound/pci/hda/patch_cirrus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 00e17f7

Please sign in to comment.