diff options
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath5k/debug.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/debugfs.c | 14 | ||||
-rw-r--r-- | drivers/net/wireless/strip.c | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath5k/debug.c b/drivers/net/wireless/ath5k/debug.c index ccaeb5c219d2..d281b6e38629 100644 --- a/drivers/net/wireless/ath5k/debug.c +++ b/drivers/net/wireless/ath5k/debug.c | |||
@@ -165,7 +165,7 @@ static int reg_show(struct seq_file *seq, void *p) | |||
165 | return 0; | 165 | return 0; |
166 | } | 166 | } |
167 | 167 | ||
168 | static struct seq_operations register_seq_ops = { | 168 | static const struct seq_operations register_seq_ops = { |
169 | .start = reg_start, | 169 | .start = reg_start, |
170 | .next = reg_next, | 170 | .next = reg_next, |
171 | .stop = reg_stop, | 171 | .stop = reg_stop, |
diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index ec4efd7ff3c8..50e28a0cdfee 100644 --- a/drivers/net/wireless/libertas/debugfs.c +++ b/drivers/net/wireless/libertas/debugfs.c | |||
@@ -629,7 +629,7 @@ static ssize_t lbs_rdrf_write(struct file *file, | |||
629 | res = -EFAULT; | 629 | res = -EFAULT; |
630 | goto out_unlock; | 630 | goto out_unlock; |
631 | } | 631 | } |
632 | priv->rf_offset = simple_strtoul((char *)buf, NULL, 16); | 632 | priv->rf_offset = simple_strtoul(buf, NULL, 16); |
633 | res = count; | 633 | res = count; |
634 | out_unlock: | 634 | out_unlock: |
635 | free_page(addr); | 635 | free_page(addr); |
@@ -680,12 +680,12 @@ out_unlock: | |||
680 | } | 680 | } |
681 | 681 | ||
682 | struct lbs_debugfs_files { | 682 | struct lbs_debugfs_files { |
683 | char *name; | 683 | const char *name; |
684 | int perm; | 684 | int perm; |
685 | struct file_operations fops; | 685 | struct file_operations fops; |
686 | }; | 686 | }; |
687 | 687 | ||
688 | static struct lbs_debugfs_files debugfs_files[] = { | 688 | static const struct lbs_debugfs_files debugfs_files[] = { |
689 | { "info", 0444, FOPS(lbs_dev_info, write_file_dummy), }, | 689 | { "info", 0444, FOPS(lbs_dev_info, write_file_dummy), }, |
690 | { "getscantable", 0444, FOPS(lbs_getscantable, | 690 | { "getscantable", 0444, FOPS(lbs_getscantable, |
691 | write_file_dummy), }, | 691 | write_file_dummy), }, |
@@ -693,7 +693,7 @@ static struct lbs_debugfs_files debugfs_files[] = { | |||
693 | lbs_sleepparams_write), }, | 693 | lbs_sleepparams_write), }, |
694 | }; | 694 | }; |
695 | 695 | ||
696 | static struct lbs_debugfs_files debugfs_events_files[] = { | 696 | static const struct lbs_debugfs_files debugfs_events_files[] = { |
697 | {"low_rssi", 0644, FOPS(lbs_lowrssi_read, | 697 | {"low_rssi", 0644, FOPS(lbs_lowrssi_read, |
698 | lbs_lowrssi_write), }, | 698 | lbs_lowrssi_write), }, |
699 | {"low_snr", 0644, FOPS(lbs_lowsnr_read, | 699 | {"low_snr", 0644, FOPS(lbs_lowsnr_read, |
@@ -708,7 +708,7 @@ static struct lbs_debugfs_files debugfs_events_files[] = { | |||
708 | lbs_highsnr_write), }, | 708 | lbs_highsnr_write), }, |
709 | }; | 709 | }; |
710 | 710 | ||
711 | static struct lbs_debugfs_files debugfs_regs_files[] = { | 711 | static const struct lbs_debugfs_files debugfs_regs_files[] = { |
712 | {"rdmac", 0644, FOPS(lbs_rdmac_read, lbs_rdmac_write), }, | 712 | {"rdmac", 0644, FOPS(lbs_rdmac_read, lbs_rdmac_write), }, |
713 | {"wrmac", 0600, FOPS(NULL, lbs_wrmac_write), }, | 713 | {"wrmac", 0600, FOPS(NULL, lbs_wrmac_write), }, |
714 | {"rdbbp", 0644, FOPS(lbs_rdbbp_read, lbs_rdbbp_write), }, | 714 | {"rdbbp", 0644, FOPS(lbs_rdbbp_read, lbs_rdbbp_write), }, |
@@ -735,7 +735,7 @@ void lbs_debugfs_remove(void) | |||
735 | void lbs_debugfs_init_one(struct lbs_private *priv, struct net_device *dev) | 735 | void lbs_debugfs_init_one(struct lbs_private *priv, struct net_device *dev) |
736 | { | 736 | { |
737 | int i; | 737 | int i; |
738 | struct lbs_debugfs_files *files; | 738 | const struct lbs_debugfs_files *files; |
739 | if (!lbs_dir) | 739 | if (!lbs_dir) |
740 | goto exit; | 740 | goto exit; |
741 | 741 | ||
@@ -938,7 +938,7 @@ static ssize_t lbs_debugfs_write(struct file *f, const char __user *buf, | |||
938 | return (ssize_t)cnt; | 938 | return (ssize_t)cnt; |
939 | } | 939 | } |
940 | 940 | ||
941 | static struct file_operations lbs_debug_fops = { | 941 | static const struct file_operations lbs_debug_fops = { |
942 | .owner = THIS_MODULE, | 942 | .owner = THIS_MODULE, |
943 | .open = open_file_generic, | 943 | .open = open_file_generic, |
944 | .write = lbs_debugfs_write, | 944 | .write = lbs_debugfs_write, |
diff --git a/drivers/net/wireless/strip.c b/drivers/net/wireless/strip.c index 7015f2480550..d6bf8d2ef8ea 100644 --- a/drivers/net/wireless/strip.c +++ b/drivers/net/wireless/strip.c | |||
@@ -1125,7 +1125,7 @@ static int strip_seq_show(struct seq_file *seq, void *v) | |||
1125 | } | 1125 | } |
1126 | 1126 | ||
1127 | 1127 | ||
1128 | static struct seq_operations strip_seq_ops = { | 1128 | static const struct seq_operations strip_seq_ops = { |
1129 | .start = strip_seq_start, | 1129 | .start = strip_seq_start, |
1130 | .next = strip_seq_next, | 1130 | .next = strip_seq_next, |
1131 | .stop = strip_seq_stop, | 1131 | .stop = strip_seq_stop, |