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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux