Skip to content

Commit

Permalink
drivers/net: Use static const char * const where possible
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Joe Perches authored and David S. Miller committed Sep 15, 2010
1 parent 6f68ad7 commit 6fa59c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion drivers/net/3c515.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 3 additions & 1 deletion drivers/net/eth16i.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 6fa59c9

Please sign in to comment.