aboutsummaryrefslogtreecommitdiff
path: root/sound/isa/gus/gus_io.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-01-05 15:48:04 +0100
committerTakashi Iwai <tiwai@suse.de>2020-01-05 16:15:03 +0100
commit15a1af95d65729d35071445b9459c1e22f776347 (patch)
tree6c3d12384478c64a8ba63ba9041021841ee867dc /sound/isa/gus/gus_io.c
parentfce6709730255f3b81e98ea3b78859b079521077 (diff)
downloadlinux-15a1af95d65729d35071445b9459c1e22f776347.tar.gz
ALSA: gus: More constifications
Apply const prefix to each possible place: the static resource tables, the volume table, etc. Just for minor optimization and no functional changes. Link: https://lore.kernel.org/r/20200105144823.29547-50-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa/gus/gus_io.c')
-rw-r--r--sound/isa/gus/gus_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/gus/gus_io.c b/sound/isa/gus/gus_io.c
index 0ab550bc80f2..fb7b5e2636b8 100644
--- a/sound/isa/gus/gus_io.c
+++ b/sound/isa/gus/gus_io.c
@@ -403,7 +403,7 @@ void snd_gf1_select_active_voices(struct snd_gus_card * gus)
{
unsigned short voices;
- static unsigned short voices_tbl[32 - 14 + 1] =
+ static const unsigned short voices_tbl[32 - 14 + 1] =
{
44100, 41160, 38587, 36317, 34300, 32494, 30870, 29400, 28063, 26843,
25725, 24696, 23746, 22866, 22050, 21289, 20580, 19916, 19293