]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ALSA: sc6000: More constification
authorTakashi Iwai <tiwai@suse.de>
Sun, 5 Jan 2020 14:48:07 +0000 (15:48 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 5 Jan 2020 15:15:05 +0000 (16:15 +0100)
Apply const prefix to the static resource tables.

Just for minor optimization and no functional changes.

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

index 395ee3b1794dcc77e0ecffba1a1eb8ec444ea407..3d0bea44f454ac8e4f58ab89ef31ba2a50f61a09 100644 (file)
@@ -534,8 +534,8 @@ static int snd_sc6000_match(struct device *devptr, unsigned int dev)
 
 static int snd_sc6000_probe(struct device *devptr, unsigned int dev)
 {
-       static int possible_irqs[] = { 5, 7, 9, 10, 11, -1 };
-       static int possible_dmas[] = { 1, 3, 0, -1 };
+       static const int possible_irqs[] = { 5, 7, 9, 10, 11, -1 };
+       static const int possible_dmas[] = { 1, 3, 0, -1 };
        int err;
        int xirq = irq[dev];
        int xdma = dma[dev];