Skip to content

Commit cebe41d

Browse files
Alexey Dobriyantiwai
authored andcommitted
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: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 350a514 commit cebe41d

67 files changed

Lines changed: 70 additions & 70 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎sound/oss/kahlua.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ MODULE_LICENSE("GPL");
198198
* 5530 only. The 5510/5520 decode is different.
199199
*/
200200

201-
static struct pci_device_id id_tbl[] = {
201+
static DEFINE_PCI_DEVICE_TABLE(id_tbl) = {
202202
{ PCI_VDEVICE(CYRIX, PCI_DEVICE_ID_CYRIX_5530_AUDIO), 0 },
203203
{ }
204204
};

‎sound/pci/ad1889.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ snd_ad1889_remove(struct pci_dev *pci)
10481048
pci_set_drvdata(pci, NULL);
10491049
}
10501050

1051-
static struct pci_device_id snd_ad1889_ids[] = {
1051+
static DEFINE_PCI_DEVICE_TABLE(snd_ad1889_ids) = {
10521052
{ PCI_DEVICE(PCI_VENDOR_ID_ANALOG_DEVICES, PCI_DEVICE_ID_AD1889JS) },
10531053
{ 0, },
10541054
};

‎sound/pci/ali5451/ali5451.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ struct snd_ali {
275275
#endif
276276
};
277277

278-
static struct pci_device_id snd_ali_ids[] = {
278+
static DEFINE_PCI_DEVICE_TABLE(snd_ali_ids) = {
279279
{PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M5451), 0, 0, 0},
280280
{0, }
281281
};

‎sound/pci/als300.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ struct snd_als300_substream_data {
145145
int block_counter_register;
146146
};
147147

148-
static struct pci_device_id snd_als300_ids[] = {
148+
static DEFINE_PCI_DEVICE_TABLE(snd_als300_ids) = {
149149
{ 0x4005, 0x0300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_ALS300 },
150150
{ 0x4005, 0x0308, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_ALS300_PLUS },
151151
{ 0, }

‎sound/pci/als4000.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ struct snd_card_als4000 {
117117
#endif
118118
};
119119

120-
static struct pci_device_id snd_als4000_ids[] = {
120+
static DEFINE_PCI_DEVICE_TABLE(snd_als4000_ids) = {
121121
{ 0x4005, 0x4000, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* ALS4000 */
122122
{ 0, }
123123
};

‎sound/pci/atiixp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ struct atiixp {
286286

287287
/*
288288
*/
289-
static struct pci_device_id snd_atiixp_ids[] = {
289+
static DEFINE_PCI_DEVICE_TABLE(snd_atiixp_ids) = {
290290
{ PCI_VDEVICE(ATI, 0x4341), 0 }, /* SB200 */
291291
{ PCI_VDEVICE(ATI, 0x4361), 0 }, /* SB300 */
292292
{ PCI_VDEVICE(ATI, 0x4370), 0 }, /* SB400 */

‎sound/pci/atiixp_modem.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ struct atiixp_modem {
261261

262262
/*
263263
*/
264-
static struct pci_device_id snd_atiixp_ids[] = {
264+
static DEFINE_PCI_DEVICE_TABLE(snd_atiixp_ids) = {
265265
{ PCI_VDEVICE(ATI, 0x434d), 0 }, /* SB200 */
266266
{ PCI_VDEVICE(ATI, 0x4378), 0 }, /* SB400 */
267267
{ 0, }

‎sound/pci/au88x0/au8810.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "au8810.h"
22
#include "au88x0.h"
3-
static struct pci_device_id snd_vortex_ids[] = {
3+
static DEFINE_PCI_DEVICE_TABLE(snd_vortex_ids) = {
44
{PCI_VDEVICE(AUREAL, PCI_DEVICE_ID_AUREAL_ADVANTAGE), 1,},
55
{0,}
66
};

‎sound/pci/au88x0/au8820.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "au8820.h"
22
#include "au88x0.h"
3-
static struct pci_device_id snd_vortex_ids[] = {
3+
static DEFINE_PCI_DEVICE_TABLE(snd_vortex_ids) = {
44
{PCI_VDEVICE(AUREAL, PCI_DEVICE_ID_AUREAL_VORTEX_1), 0,},
55
{0,}
66
};

‎sound/pci/au88x0/au8830.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "au8830.h"
22
#include "au88x0.h"
3-
static struct pci_device_id snd_vortex_ids[] = {
3+
static DEFINE_PCI_DEVICE_TABLE(snd_vortex_ids) = {
44
{PCI_VDEVICE(AUREAL, PCI_DEVICE_ID_AUREAL_VORTEX_2), 0,},
55
{0,}
66
};

0 commit comments

Comments
 (0)