]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ALSA: Use const struct ac97_quirk
authorJoe Perches <joe@perches.com>
Sat, 4 Apr 2015 20:38:25 +0000 (13:38 -0700)
committerTakashi Iwai <tiwai@suse.de>
Sun, 5 Apr 2015 06:41:05 +0000 (08:41 +0200)
Use const to reduce data by ~3Kb.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/ac97_codec.h
sound/pci/ac97/ac97_codec.c
sound/pci/ad1889.c
sound/pci/atiixp.c
sound/pci/cs5535audio/cs5535audio.c
sound/pci/intel8x0.c
sound/pci/via82xx.c

index d315a08d6c6d4e359b550a56b6e89515d4dd5898..0e9d75b49bede16f09a7e96e697a6d9061677c0c 100644 (file)
@@ -608,7 +608,9 @@ struct ac97_quirk {
        int type;               /* quirk type above */
 };
 
-int snd_ac97_tune_hardware(struct snd_ac97 *ac97, struct ac97_quirk *quirk, const char *override);
+int snd_ac97_tune_hardware(struct snd_ac97 *ac97,
+                          const struct ac97_quirk *quirk,
+                          const char *override);
 int snd_ac97_set_rate(struct snd_ac97 *ac97, int reg, unsigned int rate);
 
 /*
index 5bca1a33fed69ee1c7047993f8d6cfc150d9b4b3..82259ca61e6442df952eae0681bff5fdee841f35 100644 (file)
@@ -2902,7 +2902,8 @@ static int apply_quirk_str(struct snd_ac97 *ac97, const char *typestr)
  * Return: Zero if successful, or a negative error code on failure.
  */
 
-int snd_ac97_tune_hardware(struct snd_ac97 *ac97, struct ac97_quirk *quirk, const char *override)
+int snd_ac97_tune_hardware(struct snd_ac97 *ac97,
+                          const struct ac97_quirk *quirk, const char *override)
 {
        int result;
 
index 850a8c984c25005ec9a2c4dca24c7395054d880c..66ddd981d1d5d48f419f8fb712a1c3bef913dd6d 100644 (file)
@@ -747,7 +747,7 @@ snd_ad1889_proc_init(struct snd_ad1889 *chip)
                snd_info_set_text_ops(entry, chip, snd_ad1889_proc_read);
 }
 
-static struct ac97_quirk ac97_quirks[] = {
+static const struct ac97_quirk ac97_quirks[] = {
        {
                .subvendor = 0x11d4,    /* AD */
                .subdevice = 0x1889,    /* AD1889 */
index d5f15c9bbeda321b949221a9d48be480befd01c7..42a20c806b392682bd6ac86a1114c684464fc65f 100644 (file)
@@ -1390,7 +1390,7 @@ static irqreturn_t snd_atiixp_interrupt(int irq, void *dev_id)
  * ac97 mixer section
  */
 
-static struct ac97_quirk ac97_quirks[] = {
+static const struct ac97_quirk ac97_quirks[] = {
        {
                .subvendor = 0x103c,
                .subdevice = 0x006b,
index 802c33f1cc5957ea7fed404bf49a13c7c351ff85..963b912550d477fe946d74095791159d4b15caae 100644 (file)
@@ -43,7 +43,7 @@ static char *ac97_quirk;
 module_param(ac97_quirk, charp, 0444);
 MODULE_PARM_DESC(ac97_quirk, "AC'97 board specific workarounds.");
 
-static struct ac97_quirk ac97_quirks[] = {
+static const struct ac97_quirk ac97_quirks[] = {
 #if 0 /* Not yet confirmed if all 5536 boards are HP only */
        {
                .subvendor = PCI_VENDOR_ID_AMD, 
index 2c5484eeb96386a9dc4f06177eae71afc3b8fcc4..749069aa6997be301813d1bee1b3e43083967cf0 100644 (file)
@@ -1795,7 +1795,7 @@ static struct ac97_pcm ac97_pcm_defs[] = {
        },
 };
 
-static struct ac97_quirk ac97_quirks[] = {
+static const struct ac97_quirk ac97_quirks[] = {
         {
                .subvendor = 0x0e11,
                .subdevice = 0x000e,
index 8622283e89f3e03d073acef9d511355ac92b13ec..3dd038bdb2042127f8480c0f3fcb83e1193ca5c5 100644 (file)
@@ -1812,7 +1812,7 @@ static void snd_via82xx_mixer_free_ac97(struct snd_ac97 *ac97)
        chip->ac97 = NULL;
 }
 
-static struct ac97_quirk ac97_quirks[] = {
+static const struct ac97_quirk ac97_quirks[] = {
        {
                .subvendor = 0x1106,
                .subdevice = 0x4161,