diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2010-09-01 21:16:22 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-09-07 13:54:32 -0400 |
commit | b6f45c2c03c1d858233cb0c35471dcb6cb213cdf (patch) | |
tree | 3ec8ebf1e9a0fa600fe6216f759a0a89c20987f2 /drivers/net/wireless/ray_cs.c | |
parent | f7322f8f05f5755252e96d772fdcf9ca4304dc69 (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.c | 16 |
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); | |||
198 | module_param(phy_addr, charp, 0); | 198 | module_param(phy_addr, charp, 0); |
199 | module_param(ray_mem_speed, int, 0); | 199 | module_param(ray_mem_speed, int, 0); |
200 | 200 | ||
201 | static UCHAR b5_default_startup_parms[] = { | 201 | static 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 | ||
236 | static UCHAR b4_default_startup_parms[] = { | 236 | static 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 | /*===========================================================================*/ |
268 | static unsigned char eth2_llc[] = { 0xaa, 0xaa, 3, 0, 0, 0 }; | 268 | static const u8 eth2_llc[] = { 0xaa, 0xaa, 3, 0, 0, 0 }; |
269 | 269 | ||
270 | static char hop_pattern_length[] = { 1, | 270 | static 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 | ||
278 | static char rcsid[] = | 278 | static 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 | ||
281 | static const struct net_device_ops ray_netdev_ops = { | 281 | static 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 | ||
2611 | static char *card_status[] = { | 2611 | static 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 | ||
2628 | static char *nettype[] = { "Adhoc", "Infra " }; | 2628 | static const char *nettype[] = { "Adhoc", "Infra " }; |
2629 | static char *framing[] = { "Encapsulation", "Translation" } | 2629 | static const char *framing[] = { "Encapsulation", "Translation" } |
2630 | 2630 | ||
2631 | ; | 2631 | ; |
2632 | /*===========================================================================*/ | 2632 | /*===========================================================================*/ |