diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-05 17:48:04 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-05 18:15:03 +0300 |
commit | 15a1af95d65729d35071445b9459c1e22f776347 (patch) | |
tree | 6c3d12384478c64a8ba63ba9041021841ee867dc /sound/isa/gus/gusclassic.c | |
parent | fce6709730255f3b81e98ea3b78859b079521077 (diff) | |
download | linux-15a1af95d65729d35071445b9459c1e22f776347.tar.xz |
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/gusclassic.c')
-rw-r--r-- | sound/isa/gus/gusclassic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/isa/gus/gusclassic.c b/sound/isa/gus/gusclassic.c index f7e869771d16..7419b1939754 100644 --- a/sound/isa/gus/gusclassic.c +++ b/sound/isa/gus/gusclassic.c @@ -67,9 +67,9 @@ static int snd_gusclassic_create(struct snd_card *card, struct device *dev, unsigned int n, struct snd_gus_card **rgus) { - static long possible_ports[] = {0x220, 0x230, 0x240, 0x250, 0x260}; - static int possible_irqs[] = {5, 11, 12, 9, 7, 15, 3, 4, -1}; - static int possible_dmas[] = {5, 6, 7, 1, 3, -1}; + static const long possible_ports[] = {0x220, 0x230, 0x240, 0x250, 0x260}; + static const int possible_irqs[] = {5, 11, 12, 9, 7, 15, 3, 4, -1}; + static const int possible_dmas[] = {5, 6, 7, 1, 3, -1}; int i, error; |