diff options
author | Joe Perches <joe@perches.com> | 2009-08-24 13:29:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-31 01:34:36 -0400 |
commit | 6fce365df8c4af573ea77e744fe310e034931d42 (patch) | |
tree | c92ee2925baf370ee13ccfeff4d650ebe8c865f3 /drivers/net/s2io.c | |
parent | a453e0689a3ccf85c08cb89753d7685046248c5c (diff) |
s2io.c: Use const for strings
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Sreenivasa Honnur <sreenivasa.honnur@neterion.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/s2io.c')
-rw-r--r-- | drivers/net/s2io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c index bd6d713c861a..07e95e9b1c93 100644 --- a/drivers/net/s2io.c +++ b/drivers/net/s2io.c | |||
@@ -125,7 +125,7 @@ static inline int is_s2io_card_up(const struct s2io_nic * sp) | |||
125 | } | 125 | } |
126 | 126 | ||
127 | /* Ethtool related variables and Macros. */ | 127 | /* Ethtool related variables and Macros. */ |
128 | static char s2io_gstrings[][ETH_GSTRING_LEN] = { | 128 | static const char s2io_gstrings[][ETH_GSTRING_LEN] = { |
129 | "Register test\t(offline)", | 129 | "Register test\t(offline)", |
130 | "Eeprom test\t(offline)", | 130 | "Eeprom test\t(offline)", |
131 | "Link test\t(online)", | 131 | "Link test\t(online)", |
@@ -133,7 +133,7 @@ static char s2io_gstrings[][ETH_GSTRING_LEN] = { | |||
133 | "BIST Test\t(offline)" | 133 | "BIST Test\t(offline)" |
134 | }; | 134 | }; |
135 | 135 | ||
136 | static char ethtool_xena_stats_keys[][ETH_GSTRING_LEN] = { | 136 | static const char ethtool_xena_stats_keys[][ETH_GSTRING_LEN] = { |
137 | {"tmac_frms"}, | 137 | {"tmac_frms"}, |
138 | {"tmac_data_octets"}, | 138 | {"tmac_data_octets"}, |
139 | {"tmac_drop_frms"}, | 139 | {"tmac_drop_frms"}, |
@@ -230,7 +230,7 @@ static char ethtool_xena_stats_keys[][ETH_GSTRING_LEN] = { | |||
230 | {"rxf_wr_cnt"} | 230 | {"rxf_wr_cnt"} |
231 | }; | 231 | }; |
232 | 232 | ||
233 | static char ethtool_enhanced_stats_keys[][ETH_GSTRING_LEN] = { | 233 | static const char ethtool_enhanced_stats_keys[][ETH_GSTRING_LEN] = { |
234 | {"rmac_ttl_1519_4095_frms"}, | 234 | {"rmac_ttl_1519_4095_frms"}, |
235 | {"rmac_ttl_4096_8191_frms"}, | 235 | {"rmac_ttl_4096_8191_frms"}, |
236 | {"rmac_ttl_8192_max_frms"}, | 236 | {"rmac_ttl_8192_max_frms"}, |
@@ -249,7 +249,7 @@ static char ethtool_enhanced_stats_keys[][ETH_GSTRING_LEN] = { | |||
249 | {"link_fault_cnt"} | 249 | {"link_fault_cnt"} |
250 | }; | 250 | }; |
251 | 251 | ||
252 | static char ethtool_driver_stats_keys[][ETH_GSTRING_LEN] = { | 252 | static const char ethtool_driver_stats_keys[][ETH_GSTRING_LEN] = { |
253 | {"\n DRIVER STATISTICS"}, | 253 | {"\n DRIVER STATISTICS"}, |
254 | {"single_bit_ecc_errs"}, | 254 | {"single_bit_ecc_errs"}, |
255 | {"double_bit_ecc_errs"}, | 255 | {"double_bit_ecc_errs"}, |