You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Dominik Brodowski
parent
e9fb13bfec
commit
25f8f54f6e
@@ -309,7 +309,7 @@ static void pcmcia_remove_one(struct pcmcia_device *pdev)
|
||||
pcmcia_disable_device(pdev);
|
||||
}
|
||||
|
||||
static struct pcmcia_device_id pcmcia_devices[] = {
|
||||
static const struct pcmcia_device_id pcmcia_devices[] = {
|
||||
PCMCIA_DEVICE_FUNC_ID(4),
|
||||
PCMCIA_DEVICE_MANF_CARD(0x0000, 0x0000), /* Corsair */
|
||||
PCMCIA_DEVICE_MANF_CARD(0x0007, 0x0000), /* Hitachi */
|
||||
|
||||
@@ -930,7 +930,7 @@ static void bluecard_release(struct pcmcia_device *link)
|
||||
pcmcia_disable_device(link);
|
||||
}
|
||||
|
||||
static struct pcmcia_device_id bluecard_ids[] = {
|
||||
static const struct pcmcia_device_id bluecard_ids[] = {
|
||||
PCMCIA_DEVICE_PROD_ID12("BlueCard", "LSE041", 0xbaf16fbf, 0x657cc15e),
|
||||
PCMCIA_DEVICE_PROD_ID12("BTCFCARD", "LSE139", 0xe3987764, 0x2524b59c),
|
||||
PCMCIA_DEVICE_PROD_ID12("WSS", "LSE039", 0x0a0736ec, 0x24e6dfab),
|
||||
|
||||
@@ -761,7 +761,7 @@ static void bt3c_release(struct pcmcia_device *link)
|
||||
}
|
||||
|
||||
|
||||
static struct pcmcia_device_id bt3c_ids[] = {
|
||||
static const struct pcmcia_device_id bt3c_ids[] = {
|
||||
PCMCIA_DEVICE_PROD_ID13("3COM", "Bluetooth PC Card", 0xefce0a31, 0xd4ce9b02),
|
||||
PCMCIA_DEVICE_NULL
|
||||
};
|
||||
|
||||
@@ -689,7 +689,7 @@ static void btuart_release(struct pcmcia_device *link)
|
||||
pcmcia_disable_device(link);
|
||||
}
|
||||
|
||||
static struct pcmcia_device_id btuart_ids[] = {
|
||||
static const struct pcmcia_device_id btuart_ids[] = {
|
||||
/* don't use this driver. Use serial_cs + hci_uart instead */
|
||||
PCMCIA_DEVICE_NULL
|
||||
};
|
||||
|
||||
@@ -636,7 +636,7 @@ static void dtl1_release(struct pcmcia_device *link)
|
||||
}
|
||||
|
||||
|
||||
static struct pcmcia_device_id dtl1_ids[] = {
|
||||
static const struct pcmcia_device_id dtl1_ids[] = {
|
||||
PCMCIA_DEVICE_PROD_ID12("Nokia Mobile Phones", "DTL-1", 0xe1bfdd64, 0xe168480d),
|
||||
PCMCIA_DEVICE_PROD_ID12("Nokia Mobile Phones", "DTL-4", 0xe1bfdd64, 0x9102bc82),
|
||||
PCMCIA_DEVICE_PROD_ID12("Socket", "CF", 0xb38bcc2e, 0x44ebf863),
|
||||
|
||||
@@ -1869,7 +1869,7 @@ static const struct file_operations cm4000_fops = {
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
static struct pcmcia_device_id cm4000_ids[] = {
|
||||
static const struct pcmcia_device_id cm4000_ids[] = {
|
||||
PCMCIA_DEVICE_MANF_CARD(0x0223, 0x0002),
|
||||
PCMCIA_DEVICE_PROD_ID12("CardMan", "4000", 0x2FB368CA, 0xA2BD8C39),
|
||||
PCMCIA_DEVICE_NULL,
|
||||
|
||||
@@ -633,7 +633,7 @@ static const struct file_operations reader_fops = {
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
static struct pcmcia_device_id cm4040_ids[] = {
|
||||
static const struct pcmcia_device_id cm4040_ids[] = {
|
||||
PCMCIA_DEVICE_MANF_CARD(0x0223, 0x0200),
|
||||
PCMCIA_DEVICE_PROD_ID12("OMNIKEY", "CardMan 4040",
|
||||
0xE32CDD8C, 0x8F23318B),
|
||||
|
||||
@@ -2758,7 +2758,7 @@ static void mgslpc_remove_device(MGSLPC_INFO *remove_info)
|
||||
}
|
||||
}
|
||||
|
||||
static struct pcmcia_device_id mgslpc_ids[] = {
|
||||
static const struct pcmcia_device_id mgslpc_ids[] = {
|
||||
PCMCIA_DEVICE_MANF_CARD(0x02c5, 0x0050),
|
||||
PCMCIA_DEVICE_NULL
|
||||
};
|
||||
|
||||
@@ -272,7 +272,7 @@ static void ide_release(struct pcmcia_device *link)
|
||||
} /* ide_release */
|
||||
|
||||
|
||||
static struct pcmcia_device_id ide_ids[] = {
|
||||
static const struct pcmcia_device_id ide_ids[] = {
|
||||
PCMCIA_DEVICE_FUNC_ID(4),
|
||||
PCMCIA_DEVICE_MANF_CARD(0x0000, 0x0000), /* Corsair */
|
||||
PCMCIA_DEVICE_MANF_CARD(0x0007, 0x0000), /* Hitachi */
|
||||
|
||||
@@ -149,7 +149,7 @@ static void avmcs_release(struct pcmcia_device *link)
|
||||
} /* avmcs_release */
|
||||
|
||||
|
||||
static struct pcmcia_device_id avmcs_ids[] = {
|
||||
static const struct pcmcia_device_id avmcs_ids[] = {
|
||||
PCMCIA_DEVICE_PROD_ID12("AVM", "ISDN-Controller B1", 0x95d42008, 0x845dc335),
|
||||
PCMCIA_DEVICE_PROD_ID12("AVM", "Mobile ISDN-Controller M1", 0x95d42008, 0x81e10430),
|
||||
PCMCIA_DEVICE_PROD_ID12("AVM", "Mobile ISDN-Controller M2", 0x95d42008, 0x18e8558a),
|
||||
|
||||
@@ -146,7 +146,7 @@ static void avma1cs_release(struct pcmcia_device *link)
|
||||
pcmcia_disable_device(link);
|
||||
} /* avma1cs_release */
|
||||
|
||||
static struct pcmcia_device_id avma1cs_ids[] = {
|
||||
static const struct pcmcia_device_id avma1cs_ids[] = {
|
||||
PCMCIA_DEVICE_PROD_ID12("AVM", "ISDN A", 0x95d42008, 0xadc9d4bb),
|
||||
PCMCIA_DEVICE_PROD_ID12("ISDN", "CARD", 0x8d9761c8, 0x01c5aa7b),
|
||||
PCMCIA_DEVICE_NULL
|
||||
|
||||
@@ -202,7 +202,7 @@ static int elsa_resume(struct pcmcia_device *link)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct pcmcia_device_id elsa_ids[] = {
|
||||
static const struct pcmcia_device_id elsa_ids[] = {
|
||||
PCMCIA_DEVICE_PROD_ID12("ELSA AG (Aachen, Germany)", "MicroLink ISDN/MC ", 0x983de2c4, 0x333ba257),
|
||||
PCMCIA_DEVICE_PROD_ID12("ELSA GmbH, Aachen", "MicroLink ISDN/MC ", 0x639e5718, 0x333ba257),
|
||||
PCMCIA_DEVICE_NULL
|
||||
|
||||
@@ -186,7 +186,7 @@ static int sedlbauer_resume(struct pcmcia_device *link)
|
||||
}
|
||||
|
||||
|
||||
static struct pcmcia_device_id sedlbauer_ids[] = {
|
||||
static const struct pcmcia_device_id sedlbauer_ids[] = {
|
||||
PCMCIA_DEVICE_PROD_ID123("SEDLBAUER", "speed star II", "V 3.1", 0x81fb79f5, 0xf3612e1d, 0x6b95c78a),
|
||||
PCMCIA_DEVICE_PROD_ID123("SEDLBAUER", "ISDN-Adapter", "4D67", 0x81fb79f5, 0xe4e9bc12, 0x397b7e90),
|
||||
PCMCIA_DEVICE_PROD_ID123("SEDLBAUER", "ISDN-Adapter", "4D98", 0x81fb79f5, 0xe4e9bc12, 0x2e5c7fce),
|
||||
|
||||
@@ -185,7 +185,7 @@ static int teles_resume(struct pcmcia_device *link)
|
||||
}
|
||||
|
||||
|
||||
static struct pcmcia_device_id teles_ids[] = {
|
||||
static const struct pcmcia_device_id teles_ids[] = {
|
||||
PCMCIA_DEVICE_PROD_ID12("TELES", "S0/PC", 0x67b50eae, 0xe9e70119),
|
||||
PCMCIA_DEVICE_NULL,
|
||||
};
|
||||
|
||||
@@ -76,7 +76,7 @@ static unsigned int switchlocked;
|
||||
#define BUSY_TIMEOUT 32767
|
||||
|
||||
/* list of supported pcmcia devices */
|
||||
static struct pcmcia_device_id pcmcia_ids[] = {
|
||||
static const struct pcmcia_device_id pcmcia_ids[] = {
|
||||
/* vendor and device strings followed by their crc32 hashes */
|
||||
PCMCIA_DEVICE_PROD_ID12("RICOH", "Bay1Controller", 0xd9f522ed,
|
||||
0xc3901202),
|
||||
|
||||
@@ -694,7 +694,7 @@ static int pcmciamtd_probe(struct pcmcia_device *link)
|
||||
return pcmciamtd_config(link);
|
||||
}
|
||||
|
||||
static struct pcmcia_device_id pcmciamtd_ids[] = {
|
||||
static const struct pcmcia_device_id pcmciamtd_ids[] = {
|
||||
PCMCIA_DEVICE_FUNC_ID(1),
|
||||
PCMCIA_DEVICE_PROD_ID123("IO DATA", "PCS-2M", "2MB SRAM", 0x547e66dc, 0x1fed36cd, 0x36eadd21),
|
||||
PCMCIA_DEVICE_PROD_ID12("IBM", "2MB SRAM", 0xb569a6e5, 0x36eadd21),
|
||||
|
||||
@@ -315,7 +315,7 @@ pcmcia_failed:
|
||||
return ret ?: -ENODEV;
|
||||
}
|
||||
|
||||
static /*const*/ struct pcmcia_device_id softingcs_ids[] = {
|
||||
static const struct pcmcia_device_id softingcs_ids[] = {
|
||||
/* softing */
|
||||
PCMCIA_DEVICE_MANF_CARD(0x0168, 0x0001),
|
||||
PCMCIA_DEVICE_MANF_CARD(0x0168, 0x0002),
|
||||
|
||||
@@ -1150,7 +1150,7 @@ static int el3_close(struct net_device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct pcmcia_device_id tc574_ids[] = {
|
||||
static const struct pcmcia_device_id tc574_ids[] = {
|
||||
PCMCIA_DEVICE_MANF_CARD(0x0101, 0x0574),
|
||||
PCMCIA_MFC_DEVICE_CIS_MANF_CARD(0, 0x0101, 0x0556, "cis/3CCFEM556.cis"),
|
||||
PCMCIA_DEVICE_NULL,
|
||||
|
||||
@@ -908,7 +908,7 @@ static int el3_close(struct net_device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct pcmcia_device_id tc589_ids[] = {
|
||||
static const struct pcmcia_device_id tc589_ids[] = {
|
||||
PCMCIA_MFC_DEVICE_MANF_CARD(0, 0x0101, 0x0562),
|
||||
PCMCIA_MFC_DEVICE_PROD_ID1(0, "Motorola MARQUIS", 0xf03e4e77),
|
||||
PCMCIA_DEVICE_MANF_CARD(0x0101, 0x0589),
|
||||
|
||||
@@ -687,7 +687,7 @@ static void block_output(struct net_device *dev, int count,
|
||||
outsw(nic_base + AXNET_DATAPORT, buf, count>>1);
|
||||
}
|
||||
|
||||
static struct pcmcia_device_id axnet_ids[] = {
|
||||
static const struct pcmcia_device_id axnet_ids[] = {
|
||||
PCMCIA_PFC_DEVICE_MANF_CARD(0, 0x016c, 0x0081),
|
||||
PCMCIA_DEVICE_MANF_CARD(0x018a, 0x0301),
|
||||
PCMCIA_DEVICE_MANF_CARD(0x01bf, 0x2328),
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user