diff options
author | Joe Perches <joe@perches.com> | 2010-12-21 05:16:08 -0500 |
---|---|---|
committer | Joe Perches <joe@perches.com> | 2010-12-21 05:16:08 -0500 |
commit | b6bc765067ece933cc3dc7f5e95665a89100b1d5 (patch) | |
tree | bbf55c2d80e839eb4c0ab23bcbdd656d14b3f5fe /drivers/net/eepro.c | |
parent | 895950c2a6565d9eefda4a38b00fa28537e39fcb (diff) |
drivers/net/*.c: Use static const
Using static const generally increases object text and decreases data size.
It also generally decreases overall object size.
Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers/net/eepro.c')
-rw-r--r-- | drivers/net/eepro.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/eepro.c b/drivers/net/eepro.c index 9e19fbc2f176..4fa8d2a4aef3 100644 --- a/drivers/net/eepro.c +++ b/drivers/net/eepro.c | |||
@@ -891,12 +891,13 @@ err: | |||
891 | there is non-reboot way to recover if something goes wrong. | 891 | there is non-reboot way to recover if something goes wrong. |
892 | */ | 892 | */ |
893 | 893 | ||
894 | static char irqrmap[] = {-1,-1,0,1,-1,2,-1,-1,-1,0,3,4,-1,-1,-1,-1}; | 894 | static const char irqrmap[] = {-1,-1,0,1,-1,2,-1,-1,-1,0,3,4,-1,-1,-1,-1}; |
895 | static char irqrmap2[] = {-1,-1,4,0,1,2,-1,3,-1,4,5,6,7,-1,-1,-1}; | 895 | static const char irqrmap2[] = {-1,-1,4,0,1,2,-1,3,-1,4,5,6,7,-1,-1,-1}; |
896 | static int eepro_grab_irq(struct net_device *dev) | 896 | static int eepro_grab_irq(struct net_device *dev) |
897 | { | 897 | { |
898 | int irqlist[] = { 3, 4, 5, 7, 9, 10, 11, 12, 0 }; | 898 | static const int irqlist[] = { 3, 4, 5, 7, 9, 10, 11, 12, 0 }; |
899 | int *irqp = irqlist, temp_reg, ioaddr = dev->base_addr; | 899 | const int *irqp = irqlist; |
900 | int temp_reg, ioaddr = dev->base_addr; | ||
900 | 901 | ||
901 | eepro_sw2bank1(ioaddr); /* be CAREFUL, BANK 1 now */ | 902 | eepro_sw2bank1(ioaddr); /* be CAREFUL, BANK 1 now */ |
902 | 903 | ||