]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
drivers/net: Use static const char * const where possible
authorJoe Perches <joe@perches.com>
Mon, 13 Sep 2010 18:23:53 +0000 (18:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Sep 2010 03:22:03 +0000 (20:22 -0700)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/3c515.c
drivers/net/eth16i.c

index 8a6eb0c444869fd6e75c155bbc1929dccc60570b..cdf7226a7c43a775b0505b09ed1a0d3ba21a623e 100644 (file)
@@ -662,7 +662,9 @@ static int corkscrew_setup(struct net_device *dev, int ioaddr,
                pr_warning(" *** Warning: this IRQ is unlikely to work! ***\n");
 
        {
-               char *ram_split[] = { "5:3", "3:1", "1:1", "3:5" };
+               static const char * const ram_split[] = {
+                       "5:3", "3:1", "1:1", "3:5"
+               };
                __u32 config;
                EL3WINDOW(3);
                vp->available_media = inw(ioaddr + Wn3_Options);
index 10e39f2b31c3993e7e5bce57be2944702235481a..ce22e15a3776b4c3ff9a3ebdb7f9a670bfab3219 100644 (file)
@@ -637,7 +637,9 @@ static void eth16i_initialize(struct net_device *dev, int boot)
 
        /* Set interface port type */
        if(boot) {
-               char *porttype[] = {"BNC", "DIX", "TP", "AUTO", "FROM_EPROM" };
+               static const char * const porttype[] = {
+                       "BNC", "DIX", "TP", "AUTO", "FROM_EPROM"
+               };
 
                switch(dev->if_port)
                {