Skip to content

Commit 25f8f54

Browse files
JoePerchesDominik Brodowski
authored andcommitted
pcmcia: Convert pcmcia_device_id declarations to const
Saves about 50KB of data. Old/new size of all objects: text data bss dec hex filename 563015 80096 130684 773795 bcea3 (TOTALS) 610916 32256 130632 773804 bceac (TOTALS) Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Kurt Van Dijck <kurt.van.dijck@eia.be> (for drivers/net/can/softing/softing_cs.c) Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
1 parent e9fb13b commit 25f8f54

46 files changed

Lines changed: 47 additions & 47 deletions

Some content is hidden

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

‎drivers/ata/pata_pcmcia.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static void pcmcia_remove_one(struct pcmcia_device *pdev)
309309
pcmcia_disable_device(pdev);
310310
}
311311

312-
static struct pcmcia_device_id pcmcia_devices[] = {
312+
static const struct pcmcia_device_id pcmcia_devices[] = {
313313
PCMCIA_DEVICE_FUNC_ID(4),
314314
PCMCIA_DEVICE_MANF_CARD(0x0000, 0x0000), /* Corsair */
315315
PCMCIA_DEVICE_MANF_CARD(0x0007, 0x0000), /* Hitachi */

‎drivers/bluetooth/bluecard_cs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ static void bluecard_release(struct pcmcia_device *link)
930930
pcmcia_disable_device(link);
931931
}
932932

933-
static struct pcmcia_device_id bluecard_ids[] = {
933+
static const struct pcmcia_device_id bluecard_ids[] = {
934934
PCMCIA_DEVICE_PROD_ID12("BlueCard", "LSE041", 0xbaf16fbf, 0x657cc15e),
935935
PCMCIA_DEVICE_PROD_ID12("BTCFCARD", "LSE139", 0xe3987764, 0x2524b59c),
936936
PCMCIA_DEVICE_PROD_ID12("WSS", "LSE039", 0x0a0736ec, 0x24e6dfab),

‎drivers/bluetooth/bt3c_cs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ static void bt3c_release(struct pcmcia_device *link)
761761
}
762762

763763

764-
static struct pcmcia_device_id bt3c_ids[] = {
764+
static const struct pcmcia_device_id bt3c_ids[] = {
765765
PCMCIA_DEVICE_PROD_ID13("3COM", "Bluetooth PC Card", 0xefce0a31, 0xd4ce9b02),
766766
PCMCIA_DEVICE_NULL
767767
};

‎drivers/bluetooth/btuart_cs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ static void btuart_release(struct pcmcia_device *link)
689689
pcmcia_disable_device(link);
690690
}
691691

692-
static struct pcmcia_device_id btuart_ids[] = {
692+
static const struct pcmcia_device_id btuart_ids[] = {
693693
/* don't use this driver. Use serial_cs + hci_uart instead */
694694
PCMCIA_DEVICE_NULL
695695
};

‎drivers/bluetooth/dtl1_cs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ static void dtl1_release(struct pcmcia_device *link)
636636
}
637637

638638

639-
static struct pcmcia_device_id dtl1_ids[] = {
639+
static const struct pcmcia_device_id dtl1_ids[] = {
640640
PCMCIA_DEVICE_PROD_ID12("Nokia Mobile Phones", "DTL-1", 0xe1bfdd64, 0xe168480d),
641641
PCMCIA_DEVICE_PROD_ID12("Nokia Mobile Phones", "DTL-4", 0xe1bfdd64, 0x9102bc82),
642642
PCMCIA_DEVICE_PROD_ID12("Socket", "CF", 0xb38bcc2e, 0x44ebf863),

‎drivers/char/pcmcia/cm4000_cs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1869,7 +1869,7 @@ static const struct file_operations cm4000_fops = {
18691869
.llseek = no_llseek,
18701870
};
18711871

1872-
static struct pcmcia_device_id cm4000_ids[] = {
1872+
static const struct pcmcia_device_id cm4000_ids[] = {
18731873
PCMCIA_DEVICE_MANF_CARD(0x0223, 0x0002),
18741874
PCMCIA_DEVICE_PROD_ID12("CardMan", "4000", 0x2FB368CA, 0xA2BD8C39),
18751875
PCMCIA_DEVICE_NULL,

‎drivers/char/pcmcia/cm4040_cs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ static const struct file_operations reader_fops = {
633633
.llseek = no_llseek,
634634
};
635635

636-
static struct pcmcia_device_id cm4040_ids[] = {
636+
static const struct pcmcia_device_id cm4040_ids[] = {
637637
PCMCIA_DEVICE_MANF_CARD(0x0223, 0x0200),
638638
PCMCIA_DEVICE_PROD_ID12("OMNIKEY", "CardMan 4040",
639639
0xE32CDD8C, 0x8F23318B),

‎drivers/char/pcmcia/synclink_cs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2758,7 +2758,7 @@ static void mgslpc_remove_device(MGSLPC_INFO *remove_info)
27582758
}
27592759
}
27602760

2761-
static struct pcmcia_device_id mgslpc_ids[] = {
2761+
static const struct pcmcia_device_id mgslpc_ids[] = {
27622762
PCMCIA_DEVICE_MANF_CARD(0x02c5, 0x0050),
27632763
PCMCIA_DEVICE_NULL
27642764
};

‎drivers/ide/ide-cs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ static void ide_release(struct pcmcia_device *link)
272272
} /* ide_release */
273273

274274

275-
static struct pcmcia_device_id ide_ids[] = {
275+
static const struct pcmcia_device_id ide_ids[] = {
276276
PCMCIA_DEVICE_FUNC_ID(4),
277277
PCMCIA_DEVICE_MANF_CARD(0x0000, 0x0000), /* Corsair */
278278
PCMCIA_DEVICE_MANF_CARD(0x0007, 0x0000), /* Hitachi */

‎drivers/isdn/hardware/avm/avm_cs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static void avmcs_release(struct pcmcia_device *link)
149149
} /* avmcs_release */
150150

151151

152-
static struct pcmcia_device_id avmcs_ids[] = {
152+
static const struct pcmcia_device_id avmcs_ids[] = {
153153
PCMCIA_DEVICE_PROD_ID12("AVM", "ISDN-Controller B1", 0x95d42008, 0x845dc335),
154154
PCMCIA_DEVICE_PROD_ID12("AVM", "Mobile ISDN-Controller M1", 0x95d42008, 0x81e10430),
155155
PCMCIA_DEVICE_PROD_ID12("AVM", "Mobile ISDN-Controller M2", 0x95d42008, 0x18e8558a),

0 commit comments

Comments
 (0)