Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: pcxhr: make snd_kcontrol_new const

Make these const as they are only used during a copy operation.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Bhumika Goyal and committed by
Takashi Iwai
7df3859b bb1c928d

+2 -2
+2 -2
sound/pci/pcxhr/pcxhr_mixer.c
··· 185 185 return changed; 186 186 } 187 187 188 - static struct snd_kcontrol_new pcxhr_control_analog_level = { 188 + static const struct snd_kcontrol_new pcxhr_control_analog_level = { 189 189 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 190 190 .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | 191 191 SNDRV_CTL_ELEM_ACCESS_TLV_READ), ··· 409 409 return changed; 410 410 } 411 411 412 - static struct snd_kcontrol_new snd_pcxhr_pcm_vol = 412 + static const struct snd_kcontrol_new snd_pcxhr_pcm_vol = 413 413 { 414 414 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 415 415 .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE |