aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/ipw2x00/ipw2100.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/intel/ipw2x00/ipw2100.c')
-rw-r--r--drivers/net/wireless/intel/ipw2x00/ipw2100.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2100.c b/drivers/net/wireless/intel/ipw2x00/ipw2100.c
index 19c442cb93e4..236b52423506 100644
--- a/drivers/net/wireless/intel/ipw2x00/ipw2100.c
+++ b/drivers/net/wireless/intel/ipw2x00/ipw2100.c
@@ -3538,7 +3538,7 @@ static ssize_t show_pci(struct device *d, struct device_attribute *attr,
3538 return out - buf; 3538 return out - buf;
3539} 3539}
3540 3540
3541static DEVICE_ATTR(pci, S_IRUGO, show_pci, NULL); 3541static DEVICE_ATTR(pci, 0444, show_pci, NULL);
3542 3542
3543static ssize_t show_cfg(struct device *d, struct device_attribute *attr, 3543static ssize_t show_cfg(struct device *d, struct device_attribute *attr,
3544 char *buf) 3544 char *buf)
@@ -3547,7 +3547,7 @@ static ssize_t show_cfg(struct device *d, struct device_attribute *attr,
3547 return sprintf(buf, "0x%08x\n", (int)p->config); 3547 return sprintf(buf, "0x%08x\n", (int)p->config);
3548} 3548}
3549 3549
3550static DEVICE_ATTR(cfg, S_IRUGO, show_cfg, NULL); 3550static DEVICE_ATTR(cfg, 0444, show_cfg, NULL);
3551 3551
3552static ssize_t show_status(struct device *d, struct device_attribute *attr, 3552static ssize_t show_status(struct device *d, struct device_attribute *attr,
3553 char *buf) 3553 char *buf)
@@ -3556,7 +3556,7 @@ static ssize_t show_status(struct device *d, struct device_attribute *attr,
3556 return sprintf(buf, "0x%08x\n", (int)p->status); 3556 return sprintf(buf, "0x%08x\n", (int)p->status);
3557} 3557}
3558 3558
3559static DEVICE_ATTR(status, S_IRUGO, show_status, NULL); 3559static DEVICE_ATTR(status, 0444, show_status, NULL);
3560 3560
3561static ssize_t show_capability(struct device *d, struct device_attribute *attr, 3561static ssize_t show_capability(struct device *d, struct device_attribute *attr,
3562 char *buf) 3562 char *buf)
@@ -3565,7 +3565,7 @@ static ssize_t show_capability(struct device *d, struct device_attribute *attr,
3565 return sprintf(buf, "0x%08x\n", (int)p->capability); 3565 return sprintf(buf, "0x%08x\n", (int)p->capability);
3566} 3566}
3567 3567
3568static DEVICE_ATTR(capability, S_IRUGO, show_capability, NULL); 3568static DEVICE_ATTR(capability, 0444, show_capability, NULL);
3569 3569
3570#define IPW2100_REG(x) { IPW_ ##x, #x } 3570#define IPW2100_REG(x) { IPW_ ##x, #x }
3571static const struct { 3571static const struct {
@@ -3822,7 +3822,7 @@ static ssize_t show_registers(struct device *d, struct device_attribute *attr,
3822 return out - buf; 3822 return out - buf;
3823} 3823}
3824 3824
3825static DEVICE_ATTR(registers, S_IRUGO, show_registers, NULL); 3825static DEVICE_ATTR(registers, 0444, show_registers, NULL);
3826 3826
3827static ssize_t show_hardware(struct device *d, struct device_attribute *attr, 3827static ssize_t show_hardware(struct device *d, struct device_attribute *attr,
3828 char *buf) 3828 char *buf)
@@ -3863,7 +3863,7 @@ static ssize_t show_hardware(struct device *d, struct device_attribute *attr,
3863 return out - buf; 3863 return out - buf;
3864} 3864}
3865 3865
3866static DEVICE_ATTR(hardware, S_IRUGO, show_hardware, NULL); 3866static DEVICE_ATTR(hardware, 0444, show_hardware, NULL);
3867 3867
3868static ssize_t show_memory(struct device *d, struct device_attribute *attr, 3868static ssize_t show_memory(struct device *d, struct device_attribute *attr,
3869 char *buf) 3869 char *buf)
@@ -3957,7 +3957,7 @@ static ssize_t store_memory(struct device *d, struct device_attribute *attr,
3957 return count; 3957 return count;
3958} 3958}
3959 3959
3960static DEVICE_ATTR(memory, S_IWUSR | S_IRUGO, show_memory, store_memory); 3960static DEVICE_ATTR(memory, 0644, show_memory, store_memory);
3961 3961
3962static ssize_t show_ordinals(struct device *d, struct device_attribute *attr, 3962static ssize_t show_ordinals(struct device *d, struct device_attribute *attr,
3963 char *buf) 3963 char *buf)
@@ -3993,7 +3993,7 @@ static ssize_t show_ordinals(struct device *d, struct device_attribute *attr,
3993 return len; 3993 return len;
3994} 3994}
3995 3995
3996static DEVICE_ATTR(ordinals, S_IRUGO, show_ordinals, NULL); 3996static DEVICE_ATTR(ordinals, 0444, show_ordinals, NULL);
3997 3997
3998static ssize_t show_stats(struct device *d, struct device_attribute *attr, 3998static ssize_t show_stats(struct device *d, struct device_attribute *attr,
3999 char *buf) 3999 char *buf)
@@ -4014,7 +4014,7 @@ static ssize_t show_stats(struct device *d, struct device_attribute *attr,
4014 return out - buf; 4014 return out - buf;
4015} 4015}
4016 4016
4017static DEVICE_ATTR(stats, S_IRUGO, show_stats, NULL); 4017static DEVICE_ATTR(stats, 0444, show_stats, NULL);
4018 4018
4019static int ipw2100_switch_mode(struct ipw2100_priv *priv, u32 mode) 4019static int ipw2100_switch_mode(struct ipw2100_priv *priv, u32 mode)
4020{ 4020{
@@ -4112,7 +4112,7 @@ static ssize_t show_internals(struct device *d, struct device_attribute *attr,
4112 return len; 4112 return len;
4113} 4113}
4114 4114
4115static DEVICE_ATTR(internals, S_IRUGO, show_internals, NULL); 4115static DEVICE_ATTR(internals, 0444, show_internals, NULL);
4116 4116
4117static ssize_t show_bssinfo(struct device *d, struct device_attribute *attr, 4117static ssize_t show_bssinfo(struct device *d, struct device_attribute *attr,
4118 char *buf) 4118 char *buf)
@@ -4157,7 +4157,7 @@ static ssize_t show_bssinfo(struct device *d, struct device_attribute *attr,
4157 return out - buf; 4157 return out - buf;
4158} 4158}
4159 4159
4160static DEVICE_ATTR(bssinfo, S_IRUGO, show_bssinfo, NULL); 4160static DEVICE_ATTR(bssinfo, 0444, show_bssinfo, NULL);
4161 4161
4162#ifdef CONFIG_IPW2100_DEBUG 4162#ifdef CONFIG_IPW2100_DEBUG
4163static ssize_t debug_level_show(struct device_driver *d, char *buf) 4163static ssize_t debug_level_show(struct device_driver *d, char *buf)
@@ -4216,8 +4216,7 @@ static ssize_t store_fatal_error(struct device *d,
4216 return count; 4216 return count;
4217} 4217}
4218 4218
4219static DEVICE_ATTR(fatal_error, S_IWUSR | S_IRUGO, show_fatal_error, 4219static DEVICE_ATTR(fatal_error, 0644, show_fatal_error, store_fatal_error);
4220 store_fatal_error);
4221 4220
4222static ssize_t show_scan_age(struct device *d, struct device_attribute *attr, 4221static ssize_t show_scan_age(struct device *d, struct device_attribute *attr,
4223 char *buf) 4222 char *buf)
@@ -4250,7 +4249,7 @@ static ssize_t store_scan_age(struct device *d, struct device_attribute *attr,
4250 return strnlen(buf, count); 4249 return strnlen(buf, count);
4251} 4250}
4252 4251
4253static DEVICE_ATTR(scan_age, S_IWUSR | S_IRUGO, show_scan_age, store_scan_age); 4252static DEVICE_ATTR(scan_age, 0644, show_scan_age, store_scan_age);
4254 4253
4255static ssize_t show_rf_kill(struct device *d, struct device_attribute *attr, 4254static ssize_t show_rf_kill(struct device *d, struct device_attribute *attr,
4256 char *buf) 4255 char *buf)
@@ -4304,7 +4303,7 @@ static ssize_t store_rf_kill(struct device *d, struct device_attribute *attr,
4304 return count; 4303 return count;
4305} 4304}
4306 4305
4307static DEVICE_ATTR(rf_kill, S_IWUSR | S_IRUGO, show_rf_kill, store_rf_kill); 4306static DEVICE_ATTR(rf_kill, 0644, show_rf_kill, store_rf_kill);
4308 4307
4309static struct attribute *ipw2100_sysfs_entries[] = { 4308static struct attribute *ipw2100_sysfs_entries[] = {
4310 &dev_attr_hardware.attr, 4309 &dev_attr_hardware.attr,