diff options
author | Joe Perches <joe@perches.com> | 2011-05-03 22:29:01 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2011-05-06 01:46:22 -0400 |
commit | 25f8f54f6e178acfd503a95441b0ea05c525f751 (patch) | |
tree | 47837e1b55600602d129afb373670104f8012c60 /drivers/char | |
parent | e9fb13bfec7e017130ddc5c1b5466340470f4900 (diff) |
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>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/pcmcia/cm4000_cs.c | 2 | ||||
-rw-r--r-- | drivers/char/pcmcia/cm4040_cs.c | 2 | ||||
-rw-r--r-- | drivers/char/pcmcia/synclink_cs.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/pcmcia/cm4000_cs.c b/drivers/char/pcmcia/cm4000_cs.c index 90bd01671c70..a7584860e9a7 100644 --- a/drivers/char/pcmcia/cm4000_cs.c +++ b/drivers/char/pcmcia/cm4000_cs.c | |||
@@ -1869,7 +1869,7 @@ static const struct file_operations cm4000_fops = { | |||
1869 | .llseek = no_llseek, | 1869 | .llseek = no_llseek, |
1870 | }; | 1870 | }; |
1871 | 1871 | ||
1872 | static struct pcmcia_device_id cm4000_ids[] = { | 1872 | static const struct pcmcia_device_id cm4000_ids[] = { |
1873 | PCMCIA_DEVICE_MANF_CARD(0x0223, 0x0002), | 1873 | PCMCIA_DEVICE_MANF_CARD(0x0223, 0x0002), |
1874 | PCMCIA_DEVICE_PROD_ID12("CardMan", "4000", 0x2FB368CA, 0xA2BD8C39), | 1874 | PCMCIA_DEVICE_PROD_ID12("CardMan", "4000", 0x2FB368CA, 0xA2BD8C39), |
1875 | PCMCIA_DEVICE_NULL, | 1875 | PCMCIA_DEVICE_NULL, |
diff --git a/drivers/char/pcmcia/cm4040_cs.c b/drivers/char/pcmcia/cm4040_cs.c index 5d8d59e865f4..8dd48a2be911 100644 --- a/drivers/char/pcmcia/cm4040_cs.c +++ b/drivers/char/pcmcia/cm4040_cs.c | |||
@@ -633,7 +633,7 @@ static const struct file_operations reader_fops = { | |||
633 | .llseek = no_llseek, | 633 | .llseek = no_llseek, |
634 | }; | 634 | }; |
635 | 635 | ||
636 | static struct pcmcia_device_id cm4040_ids[] = { | 636 | static const struct pcmcia_device_id cm4040_ids[] = { |
637 | PCMCIA_DEVICE_MANF_CARD(0x0223, 0x0200), | 637 | PCMCIA_DEVICE_MANF_CARD(0x0223, 0x0200), |
638 | PCMCIA_DEVICE_PROD_ID12("OMNIKEY", "CardMan 4040", | 638 | PCMCIA_DEVICE_PROD_ID12("OMNIKEY", "CardMan 4040", |
639 | 0xE32CDD8C, 0x8F23318B), | 639 | 0xE32CDD8C, 0x8F23318B), |
diff --git a/drivers/char/pcmcia/synclink_cs.c b/drivers/char/pcmcia/synclink_cs.c index b575411c69b2..15781396af25 100644 --- a/drivers/char/pcmcia/synclink_cs.c +++ b/drivers/char/pcmcia/synclink_cs.c | |||
@@ -2758,7 +2758,7 @@ static void mgslpc_remove_device(MGSLPC_INFO *remove_info) | |||
2758 | } | 2758 | } |
2759 | } | 2759 | } |
2760 | 2760 | ||
2761 | static struct pcmcia_device_id mgslpc_ids[] = { | 2761 | static const struct pcmcia_device_id mgslpc_ids[] = { |
2762 | PCMCIA_DEVICE_MANF_CARD(0x02c5, 0x0050), | 2762 | PCMCIA_DEVICE_MANF_CARD(0x02c5, 0x0050), |
2763 | PCMCIA_DEVICE_NULL | 2763 | PCMCIA_DEVICE_NULL |
2764 | }; | 2764 | }; |