summaryrefslogtreecommitdiff
path: root/sound/isa/es1688
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-01-03 11:16:51 +0300
committerTakashi Iwai <tiwai@suse.de>2020-01-03 11:24:25 +0300
commitfdd1f6fd328ff2e3723fe2a5c94378ef6f217edc (patch)
tree22803e908c8d69ee74bc0cf2bb53376eff4f2254 /sound/isa/es1688
parent0da2c47a951c27f1be34cb9221d77b0ed2db6cee (diff)
downloadlinux-fdd1f6fd328ff2e3723fe2a5c94378ef6f217edc.tar.xz
ALSA: isa: 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-36-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa/es1688')
-rw-r--r--sound/isa/es1688/es1688_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/es1688/es1688_lib.c b/sound/isa/es1688/es1688_lib.c
index 99a833f29544..1568d0bfd1a8 100644
--- a/sound/isa/es1688/es1688_lib.c
+++ b/sound/isa/es1688/es1688_lib.c
@@ -924,7 +924,7 @@ static int snd_es1688_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_e
return change;
}
-static struct snd_kcontrol_new snd_es1688_controls[] = {
+static const struct snd_kcontrol_new snd_es1688_controls[] = {
ES1688_DOUBLE("Master Playback Volume", 0, ES1688_MASTER_DEV, ES1688_MASTER_DEV, 4, 0, 15, 0),
ES1688_DOUBLE("PCM Playback Volume", 0, ES1688_PCM_DEV, ES1688_PCM_DEV, 4, 0, 15, 0),
ES1688_DOUBLE("Line Playback Volume", 0, ES1688_LINE_DEV, ES1688_LINE_DEV, 4, 0, 15, 0),