]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ALSA: jack: More constification
authorTakashi Iwai <tiwai@suse.de>
Sun, 5 Jan 2020 14:47:54 +0000 (15:47 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 5 Jan 2020 15:14:57 +0000 (16:14 +0100)
Apply const prefix to the static jack switch table.

Just for minor optimization and no functional changes.

Link: https://lore.kernel.org/r/20200105144823.29547-40-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/jack.c

index 6590b1b8d62a0c3c7c15fb3a0c88916fa5aa679f..503c8af79d550d5c59e4dc523afe926232e370b5 100644 (file)
@@ -19,7 +19,7 @@ struct snd_jack_kctl {
 };
 
 #ifdef CONFIG_SND_JACK_INPUT_DEV
-static int jack_switch_types[SND_JACK_SWITCH_TYPES] = {
+static const int jack_switch_types[SND_JACK_SWITCH_TYPES] = {
        SW_HEADPHONE_INSERT,
        SW_MICROPHONE_INSERT,
        SW_LINEOUT_INSERT,