diff options
author | Joe Perches <joe@perches.com> | 2015-04-04 16:38:25 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-04-05 02:41:05 -0400 |
commit | eab0fbfa41040f4f76b173cad17c0c8ed40cba33 (patch) | |
tree | 1c7764baebbae8d1c22f6d1fa26cb96c91d4334a /sound/pci | |
parent | 751e2216899cb143fe1d5909fe762870faa945f6 (diff) |
ALSA: Use const struct ac97_quirk
Use const to reduce data by ~3Kb.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/ac97/ac97_codec.c | 3 | ||||
-rw-r--r-- | sound/pci/ad1889.c | 2 | ||||
-rw-r--r-- | sound/pci/atiixp.c | 2 | ||||
-rw-r--r-- | sound/pci/cs5535audio/cs5535audio.c | 2 | ||||
-rw-r--r-- | sound/pci/intel8x0.c | 2 | ||||
-rw-r--r-- | sound/pci/via82xx.c | 2 |
6 files changed, 7 insertions, 6 deletions
diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c index 5bca1a33fed6..82259ca61e64 100644 --- a/sound/pci/ac97/ac97_codec.c +++ b/sound/pci/ac97/ac97_codec.c | |||
@@ -2902,7 +2902,8 @@ static int apply_quirk_str(struct snd_ac97 *ac97, const char *typestr) | |||
2902 | * Return: Zero if successful, or a negative error code on failure. | 2902 | * Return: Zero if successful, or a negative error code on failure. |
2903 | */ | 2903 | */ |
2904 | 2904 | ||
2905 | int snd_ac97_tune_hardware(struct snd_ac97 *ac97, struct ac97_quirk *quirk, const char *override) | 2905 | int snd_ac97_tune_hardware(struct snd_ac97 *ac97, |
2906 | const struct ac97_quirk *quirk, const char *override) | ||
2906 | { | 2907 | { |
2907 | int result; | 2908 | int result; |
2908 | 2909 | ||
diff --git a/sound/pci/ad1889.c b/sound/pci/ad1889.c index 850a8c984c25..66ddd981d1d5 100644 --- a/sound/pci/ad1889.c +++ b/sound/pci/ad1889.c | |||
@@ -747,7 +747,7 @@ snd_ad1889_proc_init(struct snd_ad1889 *chip) | |||
747 | snd_info_set_text_ops(entry, chip, snd_ad1889_proc_read); | 747 | snd_info_set_text_ops(entry, chip, snd_ad1889_proc_read); |
748 | } | 748 | } |
749 | 749 | ||
750 | static struct ac97_quirk ac97_quirks[] = { | 750 | static const struct ac97_quirk ac97_quirks[] = { |
751 | { | 751 | { |
752 | .subvendor = 0x11d4, /* AD */ | 752 | .subvendor = 0x11d4, /* AD */ |
753 | .subdevice = 0x1889, /* AD1889 */ | 753 | .subdevice = 0x1889, /* AD1889 */ |
diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c index d5f15c9bbeda..42a20c806b39 100644 --- a/sound/pci/atiixp.c +++ b/sound/pci/atiixp.c | |||
@@ -1390,7 +1390,7 @@ static irqreturn_t snd_atiixp_interrupt(int irq, void *dev_id) | |||
1390 | * ac97 mixer section | 1390 | * ac97 mixer section |
1391 | */ | 1391 | */ |
1392 | 1392 | ||
1393 | static struct ac97_quirk ac97_quirks[] = { | 1393 | static const struct ac97_quirk ac97_quirks[] = { |
1394 | { | 1394 | { |
1395 | .subvendor = 0x103c, | 1395 | .subvendor = 0x103c, |
1396 | .subdevice = 0x006b, | 1396 | .subdevice = 0x006b, |
diff --git a/sound/pci/cs5535audio/cs5535audio.c b/sound/pci/cs5535audio/cs5535audio.c index 802c33f1cc59..963b912550d4 100644 --- a/sound/pci/cs5535audio/cs5535audio.c +++ b/sound/pci/cs5535audio/cs5535audio.c | |||
@@ -43,7 +43,7 @@ static char *ac97_quirk; | |||
43 | module_param(ac97_quirk, charp, 0444); | 43 | module_param(ac97_quirk, charp, 0444); |
44 | MODULE_PARM_DESC(ac97_quirk, "AC'97 board specific workarounds."); | 44 | MODULE_PARM_DESC(ac97_quirk, "AC'97 board specific workarounds."); |
45 | 45 | ||
46 | static struct ac97_quirk ac97_quirks[] = { | 46 | static const struct ac97_quirk ac97_quirks[] = { |
47 | #if 0 /* Not yet confirmed if all 5536 boards are HP only */ | 47 | #if 0 /* Not yet confirmed if all 5536 boards are HP only */ |
48 | { | 48 | { |
49 | .subvendor = PCI_VENDOR_ID_AMD, | 49 | .subvendor = PCI_VENDOR_ID_AMD, |
diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c index 2c5484eeb963..749069aa6997 100644 --- a/sound/pci/intel8x0.c +++ b/sound/pci/intel8x0.c | |||
@@ -1795,7 +1795,7 @@ static struct ac97_pcm ac97_pcm_defs[] = { | |||
1795 | }, | 1795 | }, |
1796 | }; | 1796 | }; |
1797 | 1797 | ||
1798 | static struct ac97_quirk ac97_quirks[] = { | 1798 | static const struct ac97_quirk ac97_quirks[] = { |
1799 | { | 1799 | { |
1800 | .subvendor = 0x0e11, | 1800 | .subvendor = 0x0e11, |
1801 | .subdevice = 0x000e, | 1801 | .subdevice = 0x000e, |
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index 8622283e89f3..3dd038bdb204 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c | |||
@@ -1812,7 +1812,7 @@ static void snd_via82xx_mixer_free_ac97(struct snd_ac97 *ac97) | |||
1812 | chip->ac97 = NULL; | 1812 | chip->ac97 = NULL; |
1813 | } | 1813 | } |
1814 | 1814 | ||
1815 | static struct ac97_quirk ac97_quirks[] = { | 1815 | static const struct ac97_quirk ac97_quirks[] = { |
1816 | { | 1816 | { |
1817 | .subvendor = 0x1106, | 1817 | .subvendor = 0x1106, |
1818 | .subdevice = 0x4161, | 1818 | .subdevice = 0x4161, |