Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cebe41d4 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Takashi Iwai
Browse files

sound: use DEFINE_PCI_DEVICE_TABLE



Use DEFINE_PCI_DEVICE_TABLE() to make PCI device ids go to
.devinit.rodata section, so they can be discarded in some cases,
and make them const.

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 350a5147
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -198,7 +198,7 @@ MODULE_LICENSE("GPL");
 *	5530 only. The 5510/5520 decode is different.
 */

static struct pci_device_id id_tbl[] = {
static DEFINE_PCI_DEVICE_TABLE(id_tbl) = {
	{ PCI_VDEVICE(CYRIX, PCI_DEVICE_ID_CYRIX_5530_AUDIO), 0 },
	{ }
};
+1 −1
Original line number Diff line number Diff line
@@ -1048,7 +1048,7 @@ snd_ad1889_remove(struct pci_dev *pci)
	pci_set_drvdata(pci, NULL);
}

static struct pci_device_id snd_ad1889_ids[] = {
static DEFINE_PCI_DEVICE_TABLE(snd_ad1889_ids) = {
	{ PCI_DEVICE(PCI_VENDOR_ID_ANALOG_DEVICES, PCI_DEVICE_ID_AD1889JS) },
	{ 0, },
};
+1 −1
Original line number Diff line number Diff line
@@ -275,7 +275,7 @@ struct snd_ali {
#endif
};

static struct pci_device_id snd_ali_ids[] = {
static DEFINE_PCI_DEVICE_TABLE(snd_ali_ids) = {
	{PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M5451), 0, 0, 0},
	{0, }
};
+1 −1
Original line number Diff line number Diff line
@@ -145,7 +145,7 @@ struct snd_als300_substream_data {
	int block_counter_register;
};

static struct pci_device_id snd_als300_ids[] = {
static DEFINE_PCI_DEVICE_TABLE(snd_als300_ids) = {
	{ 0x4005, 0x0300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_ALS300 },
	{ 0x4005, 0x0308, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_ALS300_PLUS },
	{ 0, }
+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ struct snd_card_als4000 {
#endif
};

static struct pci_device_id snd_als4000_ids[] = {
static DEFINE_PCI_DEVICE_TABLE(snd_als4000_ids) = {
	{ 0x4005, 0x4000, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },   /* ALS4000 */
	{ 0, }
};
Loading