diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/sysfs.c')
| -rw-r--r-- | drivers/net/wireless/ath/ath5k/sysfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath5k/sysfs.c b/drivers/net/wireless/ath/ath5k/sysfs.c index 25978c732fe1..8113baddd8fc 100644 --- a/drivers/net/wireless/ath/ath5k/sysfs.c +++ b/drivers/net/wireless/ath/ath5k/sysfs.c | |||
| @@ -31,7 +31,7 @@ static ssize_t ath5k_attr_store_##name(struct device *dev, \ | |||
| 31 | set(ah, val); \ | 31 | set(ah, val); \ |
| 32 | return count; \ | 32 | return count; \ |
| 33 | } \ | 33 | } \ |
| 34 | static DEVICE_ATTR(name, S_IRUGO | S_IWUSR, \ | 34 | static DEVICE_ATTR(name, 0644, \ |
| 35 | ath5k_attr_show_##name, ath5k_attr_store_##name) | 35 | ath5k_attr_show_##name, ath5k_attr_store_##name) |
| 36 | 36 | ||
| 37 | #define SIMPLE_SHOW(name, get) \ | 37 | #define SIMPLE_SHOW(name, get) \ |
| @@ -43,7 +43,7 @@ static ssize_t ath5k_attr_show_##name(struct device *dev, \ | |||
| 43 | struct ath5k_hw *ah = hw->priv; \ | 43 | struct ath5k_hw *ah = hw->priv; \ |
| 44 | return snprintf(buf, PAGE_SIZE, "%d\n", get); \ | 44 | return snprintf(buf, PAGE_SIZE, "%d\n", get); \ |
| 45 | } \ | 45 | } \ |
| 46 | static DEVICE_ATTR(name, S_IRUGO, ath5k_attr_show_##name, NULL) | 46 | static DEVICE_ATTR(name, 0444, ath5k_attr_show_##name, NULL) |
| 47 | 47 | ||
| 48 | /*** ANI ***/ | 48 | /*** ANI ***/ |
| 49 | 49 | ||
| @@ -66,7 +66,7 @@ static ssize_t ath5k_attr_show_noise_immunity_level_max(struct device *dev, | |||
| 66 | { | 66 | { |
| 67 | return snprintf(buf, PAGE_SIZE, "%d\n", ATH5K_ANI_MAX_NOISE_IMM_LVL); | 67 | return snprintf(buf, PAGE_SIZE, "%d\n", ATH5K_ANI_MAX_NOISE_IMM_LVL); |
| 68 | } | 68 | } |
| 69 | static DEVICE_ATTR(noise_immunity_level_max, S_IRUGO, | 69 | static DEVICE_ATTR(noise_immunity_level_max, 0444, |
| 70 | ath5k_attr_show_noise_immunity_level_max, NULL); | 70 | ath5k_attr_show_noise_immunity_level_max, NULL); |
| 71 | 71 | ||
| 72 | static ssize_t ath5k_attr_show_firstep_level_max(struct device *dev, | 72 | static ssize_t ath5k_attr_show_firstep_level_max(struct device *dev, |
| @@ -75,7 +75,7 @@ static ssize_t ath5k_attr_show_firstep_level_max(struct device *dev, | |||
| 75 | { | 75 | { |
| 76 | return snprintf(buf, PAGE_SIZE, "%d\n", ATH5K_ANI_MAX_FIRSTEP_LVL); | 76 | return snprintf(buf, PAGE_SIZE, "%d\n", ATH5K_ANI_MAX_FIRSTEP_LVL); |
| 77 | } | 77 | } |
| 78 | static DEVICE_ATTR(firstep_level_max, S_IRUGO, | 78 | static DEVICE_ATTR(firstep_level_max, 0444, |
| 79 | ath5k_attr_show_firstep_level_max, NULL); | 79 | ath5k_attr_show_firstep_level_max, NULL); |
| 80 | 80 | ||
| 81 | static struct attribute *ath5k_sysfs_entries_ani[] = { | 81 | static struct attribute *ath5k_sysfs_entries_ani[] = { |
