summaryrefslogtreecommitdiffstats
path: root/sound/pci/ice1712/juli.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-01-03 09:16:53 +0100
committerTakashi Iwai <tiwai@suse.de>2020-01-03 09:24:28 +0100
commitb4e5e70775546480035e156b40040e5d0d4264d1 (patch)
treea09b88a21989aa000448973c1e08f82e429d88f9 /sound/pci/ice1712/juli.c
parent35ace5e8410e41df8719ee9fee49312655efa26a (diff)
downloadlinux-b4e5e70775546480035e156b40040e5d0d4264d1.tar.gz
linux-b4e5e70775546480035e156b40040e5d0d4264d1.tar.bz2
linux-b4e5e70775546480035e156b40040e5d0d4264d1.zip
ALSA: pci: Constify snd_kcontrol_new items
Most of snd_kcontrol_new definitions are read-only and passed as-is. Let's declare them as const for further optimization. There should be no functional changes by this patch. Link: https://lore.kernel.org/r/20200103081714.9560-38-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ice1712/juli.c')
-rw-r--r--sound/pci/ice1712/juli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ice1712/juli.c b/sound/pci/ice1712/juli.c
index 0da7e940f264..079e58ec8b09 100644
--- a/sound/pci/ice1712/juli.c
+++ b/sound/pci/ice1712/juli.c
@@ -343,7 +343,7 @@ static int juli_mute_put(struct snd_kcontrol *kcontrol,
return 0;
}
-static struct snd_kcontrol_new juli_mute_controls[] = {
+static const struct snd_kcontrol_new juli_mute_controls[] = {
{
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
.name = "Master Playback Switch",