summaryrefslogtreecommitdiff
path: root/sound/core
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-01-05 17:47:54 +0300
committerTakashi Iwai <tiwai@suse.de>2020-01-05 18:14:57 +0300
commitf98903fce976f261b5cfc28a1c86163a7c5b01b9 (patch)
tree7bf9cda04e2fd9bf205c4aa586dd0e7902f6d5ef /sound/core
parent51d7847a2d81ac6779b62fabd722b49b3b664de9 (diff)
downloadlinux-f98903fce976f261b5cfc28a1c86163a7c5b01b9.tar.xz
ALSA: jack: More constification
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>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/jack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/jack.c b/sound/core/jack.c
index 6590b1b8d62a..503c8af79d55 100644
--- a/sound/core/jack.c
+++ b/sound/core/jack.c
@@ -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,