aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/airo.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2010-09-01 21:17:21 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-09-07 13:54:33 -0400
commit7a374d8eeb1140c08d215de7a181e595ca606196 (patch)
tree5695b0aa7089f4759066f9e47e2c6606982e48df /drivers/net/wireless/airo.c
parentb6f45c2c03c1d858233cb0c35471dcb6cb213cdf (diff)
airo: make strings const
Make read/only data structures 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/airo.c')
-rw-r--r--drivers/net/wireless/airo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c
index 1d05445d4ba3..c7528e5794d1 100644
--- a/drivers/net/wireless/airo.c
+++ b/drivers/net/wireless/airo.c
@@ -105,7 +105,7 @@ static struct pci_driver airo_driver = {
105 of statistics in the /proc filesystem */ 105 of statistics in the /proc filesystem */
106 106
107#define IGNLABEL(comment) NULL 107#define IGNLABEL(comment) NULL
108static char *statsLabels[] = { 108static const char *statsLabels[] = {
109 "RxOverrun", 109 "RxOverrun",
110 IGNLABEL("RxPlcpCrcErr"), 110 IGNLABEL("RxPlcpCrcErr"),
111 IGNLABEL("RxPlcpFormatErr"), 111 IGNLABEL("RxPlcpFormatErr"),
@@ -932,7 +932,7 @@ typedef struct aironet_ioctl {
932 unsigned char __user *data; // d-data 932 unsigned char __user *data; // d-data
933} aironet_ioctl; 933} aironet_ioctl;
934 934
935static char swversion[] = "2.1"; 935static const char swversion[] = "2.1";
936#endif /* CISCO_EXT */ 936#endif /* CISCO_EXT */
937 937
938#define NUM_MODULES 2 938#define NUM_MODULES 2
@@ -1374,7 +1374,7 @@ static int micsetup(struct airo_info *ai) {
1374 return SUCCESS; 1374 return SUCCESS;
1375} 1375}
1376 1376
1377static char micsnap[] = {0xAA,0xAA,0x03,0x00,0x40,0x96,0x00,0x02}; 1377static const u8 micsnap[] = {0xAA,0xAA,0x03,0x00,0x40,0x96,0x00,0x02};
1378 1378
1379/*=========================================================================== 1379/*===========================================================================
1380 * Description: Mic a packet 1380 * Description: Mic a packet
@@ -5024,7 +5024,7 @@ static void proc_config_on_close(struct inode *inode, struct file *file)
5024 airo_config_commit(dev, NULL, NULL, NULL); 5024 airo_config_commit(dev, NULL, NULL, NULL);
5025} 5025}
5026 5026
5027static char *get_rmode(__le16 mode) 5027static const char *get_rmode(__le16 mode)
5028{ 5028{
5029 switch(mode & RXMODE_MASK) { 5029 switch(mode & RXMODE_MASK) {
5030 case RXMODE_RFMON: return "rfmon"; 5030 case RXMODE_RFMON: return "rfmon";