aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ray_cs.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2010-09-01 21:16:22 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-09-07 13:54:32 -0400
commitb6f45c2c03c1d858233cb0c35471dcb6cb213cdf (patch)
tree3ec8ebf1e9a0fa600fe6216f759a0a89c20987f2 /drivers/net/wireless/ray_cs.c
parentf7322f8f05f5755252e96d772fdcf9ca4304dc69 (diff)
ray_cs: make data const
Make the startup and other data parameters that are read/only const. Compile tested only. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ray_cs.c')
-rw-r--r--drivers/net/wireless/ray_cs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c
index 9c38fc331dca..390ccf6e08a3 100644
--- a/drivers/net/wireless/ray_cs.c
+++ b/drivers/net/wireless/ray_cs.c
@@ -198,7 +198,7 @@ module_param(bc, int, 0);
198module_param(phy_addr, charp, 0); 198module_param(phy_addr, charp, 0);
199module_param(ray_mem_speed, int, 0); 199module_param(ray_mem_speed, int, 0);
200 200
201static UCHAR b5_default_startup_parms[] = { 201static const UCHAR b5_default_startup_parms[] = {
202 0, 0, /* Adhoc station */ 202 0, 0, /* Adhoc station */
203 'L', 'I', 'N', 'U', 'X', 0, 0, 0, /* 32 char ESSID */ 203 'L', 'I', 'N', 'U', 'X', 0, 0, 0, /* 32 char ESSID */
204 0, 0, 0, 0, 0, 0, 0, 0, 204 0, 0, 0, 0, 0, 0, 0, 0,
@@ -233,7 +233,7 @@ static UCHAR b5_default_startup_parms[] = {
233 2, 0, 0, 0, 0, 0, 0, 0 /* basic rate set */ 233 2, 0, 0, 0, 0, 0, 0, 0 /* basic rate set */
234}; 234};
235 235
236static UCHAR b4_default_startup_parms[] = { 236static const UCHAR b4_default_startup_parms[] = {
237 0, 0, /* Adhoc station */ 237 0, 0, /* Adhoc station */
238 'L', 'I', 'N', 'U', 'X', 0, 0, 0, /* 32 char ESSID */ 238 'L', 'I', 'N', 'U', 'X', 0, 0, 0, /* 32 char ESSID */
239 0, 0, 0, 0, 0, 0, 0, 0, 239 0, 0, 0, 0, 0, 0, 0, 0,
@@ -265,9 +265,9 @@ static UCHAR b4_default_startup_parms[] = {
265}; 265};
266 266
267/*===========================================================================*/ 267/*===========================================================================*/
268static unsigned char eth2_llc[] = { 0xaa, 0xaa, 3, 0, 0, 0 }; 268static const u8 eth2_llc[] = { 0xaa, 0xaa, 3, 0, 0, 0 };
269 269
270static char hop_pattern_length[] = { 1, 270static const char hop_pattern_length[] = { 1,
271 USA_HOP_MOD, EUROPE_HOP_MOD, 271 USA_HOP_MOD, EUROPE_HOP_MOD,
272 JAPAN_HOP_MOD, KOREA_HOP_MOD, 272 JAPAN_HOP_MOD, KOREA_HOP_MOD,
273 SPAIN_HOP_MOD, FRANCE_HOP_MOD, 273 SPAIN_HOP_MOD, FRANCE_HOP_MOD,
@@ -275,7 +275,7 @@ static char hop_pattern_length[] = { 1,
275 JAPAN_TEST_HOP_MOD 275 JAPAN_TEST_HOP_MOD
276}; 276};
277 277
278static char rcsid[] = 278static const char rcsid[] =
279 "Raylink/WebGear wireless LAN - Corey <Thomas corey@world.std.com>"; 279 "Raylink/WebGear wireless LAN - Corey <Thomas corey@world.std.com>";
280 280
281static const struct net_device_ops ray_netdev_ops = { 281static const struct net_device_ops ray_netdev_ops = {
@@ -2608,7 +2608,7 @@ static void clear_interrupt(ray_dev_t *local)
2608#ifdef CONFIG_PROC_FS 2608#ifdef CONFIG_PROC_FS
2609#define MAXDATA (PAGE_SIZE - 80) 2609#define MAXDATA (PAGE_SIZE - 80)
2610 2610
2611static char *card_status[] = { 2611static const char *card_status[] = {
2612 "Card inserted - uninitialized", /* 0 */ 2612 "Card inserted - uninitialized", /* 0 */
2613 "Card not downloaded", /* 1 */ 2613 "Card not downloaded", /* 1 */
2614 "Waiting for download parameters", /* 2 */ 2614 "Waiting for download parameters", /* 2 */
@@ -2625,8 +2625,8 @@ static char *card_status[] = {
2625 "Association failed" /* 16 */ 2625 "Association failed" /* 16 */
2626}; 2626};
2627 2627
2628static char *nettype[] = { "Adhoc", "Infra " }; 2628static const char *nettype[] = { "Adhoc", "Infra " };
2629static char *framing[] = { "Encapsulation", "Translation" } 2629static const char *framing[] = { "Encapsulation", "Translation" }
2630 2630
2631; 2631;
2632/*===========================================================================*/ 2632/*===========================================================================*/