linux-mips
[Top] [All Lists]

[PATCH] [TRIVIAL] sm1250: constify three stings.

To: macro@linux-mips.org
Subject: [PATCH] [TRIVIAL] sm1250: constify three stings.
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Sun, 3 Feb 2008 12:29:06 +1100
Cc: linux-mips@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
This was noticed because sbmac_string is passed to
platform_device_register_simple() which now takes a "const char *"
as it first argument.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 drivers/net/sb1250-mac.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

This has not even been compiled, but is fairly trivial.

diff --git a/drivers/net/sb1250-mac.c b/drivers/net/sb1250-mac.c
index 7b53d65..d83471a 100644
--- a/drivers/net/sb1250-mac.c
+++ b/drivers/net/sb1250-mac.c
@@ -350,10 +350,10 @@ static int sbmac_mii_write(struct mii_bus *bus, int 
phyaddr, int regidx,
  *  Globals
  ********************************************************************* */
 
-static char sbmac_string[] = "sb1250-mac";
-static char sbmac_pretty[] = "SB1250 MAC";
+static const char sbmac_string[] = "sb1250-mac";
+static const char sbmac_pretty[] = "SB1250 MAC";
 
-static char sbmac_mdio_string[] = "sb1250-mac-mdio";
+static const char sbmac_mdio_string[] = "sb1250-mac-mdio";
 
 
 /**********************************************************************
-- 
1.5.3.8

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] [TRIVIAL] sm1250: constify three stings., Stephen Rothwell <=