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>
This commit is contained in:
parent
b6f45c2c03
commit
7a374d8eeb
1 changed files with 4 additions and 4 deletions
|
@ -105,7 +105,7 @@ static struct pci_driver airo_driver = {
|
||||||
of statistics in the /proc filesystem */
|
of statistics in the /proc filesystem */
|
||||||
|
|
||||||
#define IGNLABEL(comment) NULL
|
#define IGNLABEL(comment) NULL
|
||||||
static char *statsLabels[] = {
|
static const char *statsLabels[] = {
|
||||||
"RxOverrun",
|
"RxOverrun",
|
||||||
IGNLABEL("RxPlcpCrcErr"),
|
IGNLABEL("RxPlcpCrcErr"),
|
||||||
IGNLABEL("RxPlcpFormatErr"),
|
IGNLABEL("RxPlcpFormatErr"),
|
||||||
|
@ -932,7 +932,7 @@ typedef struct aironet_ioctl {
|
||||||
unsigned char __user *data; // d-data
|
unsigned char __user *data; // d-data
|
||||||
} aironet_ioctl;
|
} aironet_ioctl;
|
||||||
|
|
||||||
static char swversion[] = "2.1";
|
static const char swversion[] = "2.1";
|
||||||
#endif /* CISCO_EXT */
|
#endif /* CISCO_EXT */
|
||||||
|
|
||||||
#define NUM_MODULES 2
|
#define NUM_MODULES 2
|
||||||
|
@ -1374,7 +1374,7 @@ static int micsetup(struct airo_info *ai) {
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char micsnap[] = {0xAA,0xAA,0x03,0x00,0x40,0x96,0x00,0x02};
|
static const u8 micsnap[] = {0xAA,0xAA,0x03,0x00,0x40,0x96,0x00,0x02};
|
||||||
|
|
||||||
/*===========================================================================
|
/*===========================================================================
|
||||||
* Description: Mic a packet
|
* Description: Mic a packet
|
||||||
|
@ -5024,7 +5024,7 @@ static void proc_config_on_close(struct inode *inode, struct file *file)
|
||||||
airo_config_commit(dev, NULL, NULL, NULL);
|
airo_config_commit(dev, NULL, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *get_rmode(__le16 mode)
|
static const char *get_rmode(__le16 mode)
|
||||||
{
|
{
|
||||||
switch(mode & RXMODE_MASK) {
|
switch(mode & RXMODE_MASK) {
|
||||||
case RXMODE_RFMON: return "rfmon";
|
case RXMODE_RFMON: return "rfmon";
|
||||||
|
|
Loading…
Add table
Reference in a new issue