diff options
author | Joe Perches <joe@perches.com> | 2010-09-13 14:23:53 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-14 23:22:03 -0400 |
commit | 6fa59c9da82adcc7d63a2776969548e2b45448e0 (patch) | |
tree | bb84448ee946daf077726d9821c4bfa214647a41 | |
parent | 6f68ad7fbb421df0aa3c267768245b2e86a91f74 (diff) |
drivers/net: Use static const char * const where possible
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/3c515.c | 4 | ||||
-rw-r--r-- | drivers/net/eth16i.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/3c515.c b/drivers/net/3c515.c index 8a6eb0c44486..cdf7226a7c43 100644 --- a/drivers/net/3c515.c +++ b/drivers/net/3c515.c | |||
@@ -662,7 +662,9 @@ static int corkscrew_setup(struct net_device *dev, int ioaddr, | |||
662 | pr_warning(" *** Warning: this IRQ is unlikely to work! ***\n"); | 662 | pr_warning(" *** Warning: this IRQ is unlikely to work! ***\n"); |
663 | 663 | ||
664 | { | 664 | { |
665 | char *ram_split[] = { "5:3", "3:1", "1:1", "3:5" }; | 665 | static const char * const ram_split[] = { |
666 | "5:3", "3:1", "1:1", "3:5" | ||
667 | }; | ||
666 | __u32 config; | 668 | __u32 config; |
667 | EL3WINDOW(3); | 669 | EL3WINDOW(3); |
668 | vp->available_media = inw(ioaddr + Wn3_Options); | 670 | vp->available_media = inw(ioaddr + Wn3_Options); |
diff --git a/drivers/net/eth16i.c b/drivers/net/eth16i.c index 10e39f2b31c3..ce22e15a3776 100644 --- a/drivers/net/eth16i.c +++ b/drivers/net/eth16i.c | |||
@@ -637,7 +637,9 @@ static void eth16i_initialize(struct net_device *dev, int boot) | |||
637 | 637 | ||
638 | /* Set interface port type */ | 638 | /* Set interface port type */ |
639 | if(boot) { | 639 | if(boot) { |
640 | char *porttype[] = {"BNC", "DIX", "TP", "AUTO", "FROM_EPROM" }; | 640 | static const char * const porttype[] = { |
641 | "BNC", "DIX", "TP", "AUTO", "FROM_EPROM" | ||
642 | }; | ||
641 | 643 | ||
642 | switch(dev->if_port) | 644 | switch(dev->if_port) |
643 | { | 645 | { |