Commit 8fc17916 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: sc6000: More constification

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.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 429bca4d
...@@ -534,8 +534,8 @@ static int snd_sc6000_match(struct device *devptr, unsigned int dev) ...@@ -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 snd_sc6000_probe(struct device *devptr, unsigned int dev)
{ {
static int possible_irqs[] = { 5, 7, 9, 10, 11, -1 }; static const int possible_irqs[] = { 5, 7, 9, 10, 11, -1 };
static int possible_dmas[] = { 1, 3, 0, -1 }; static const int possible_dmas[] = { 1, 3, 0, -1 };
int err; int err;
int xirq = irq[dev]; int xirq = irq[dev];
int xdma = dma[dev]; int xdma = dma[dev];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment