aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/arcnet/com20020.c3
-rw-r--r--drivers/net/bonding/bond_main.c2
-rw-r--r--drivers/net/gianfar_sysfs.c108
-rw-r--r--drivers/net/hamradio/bpqether.c2
-rw-r--r--drivers/net/hamradio/scc.c2
-rw-r--r--drivers/net/hamradio/yam.c2
-rw-r--r--drivers/net/ibmveth.c2
-rw-r--r--drivers/net/irda/vlsi_ir.c2
-rw-r--r--drivers/net/ppp_generic.c4
-rw-r--r--drivers/net/pppoe.c2
-rw-r--r--drivers/net/tun.c2
-rw-r--r--drivers/net/wan/cosa.c2
-rw-r--r--drivers/net/wireless/airo.c16
-rw-r--r--drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c12
-rw-r--r--drivers/net/wireless/strip.c2
15 files changed, 83 insertions, 80 deletions
diff --git a/drivers/net/arcnet/com20020.c b/drivers/net/arcnet/com20020.c
index aa9dd8f11269..4218075c8aa3 100644
--- a/drivers/net/arcnet/com20020.c
+++ b/drivers/net/arcnet/com20020.c
@@ -338,7 +338,8 @@ static void com20020_set_mc_list(struct net_device *dev)
338} 338}
339 339
340#if defined(CONFIG_ARCNET_COM20020_PCI_MODULE) || \ 340#if defined(CONFIG_ARCNET_COM20020_PCI_MODULE) || \
341 defined(CONFIG_ARCNET_COM20020_ISA_MODULE) 341 defined(CONFIG_ARCNET_COM20020_ISA_MODULE) || \
342 defined(CONFIG_ARCNET_COM20020_CS_MODULE)
342EXPORT_SYMBOL(com20020_check); 343EXPORT_SYMBOL(com20020_check);
343EXPORT_SYMBOL(com20020_found); 344EXPORT_SYMBOL(com20020_found);
344#endif 345#endif
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 8ce8fec615ba..61a6fa465d71 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -3120,7 +3120,7 @@ static int bond_info_open(struct inode *inode, struct file *file)
3120 return res; 3120 return res;
3121} 3121}
3122 3122
3123static struct file_operations bond_info_fops = { 3123static const struct file_operations bond_info_fops = {
3124 .owner = THIS_MODULE, 3124 .owner = THIS_MODULE,
3125 .open = bond_info_open, 3125 .open = bond_info_open,
3126 .read = seq_read, 3126 .read = seq_read,
diff --git a/drivers/net/gianfar_sysfs.c b/drivers/net/gianfar_sysfs.c
index 9dd387fb3d74..6e2166a7601a 100644
--- a/drivers/net/gianfar_sysfs.c
+++ b/drivers/net/gianfar_sysfs.c
@@ -39,13 +39,15 @@
39#include "gianfar.h" 39#include "gianfar.h"
40 40
41#define GFAR_ATTR(_name) \ 41#define GFAR_ATTR(_name) \
42static ssize_t gfar_show_##_name(struct class_device *cdev, char *buf); \ 42static ssize_t gfar_show_##_name(struct device *dev, \
43static ssize_t gfar_set_##_name(struct class_device *cdev, \ 43 struct device_attribute *attr, char *buf); \
44static ssize_t gfar_set_##_name(struct device *dev, \
45 struct device_attribute *attr, \
44 const char *buf, size_t count); \ 46 const char *buf, size_t count); \
45static CLASS_DEVICE_ATTR(_name, 0644, gfar_show_##_name, gfar_set_##_name) 47static DEVICE_ATTR(_name, 0644, gfar_show_##_name, gfar_set_##_name)
46 48
47#define GFAR_CREATE_FILE(_dev, _name) \ 49#define GFAR_CREATE_FILE(_dev, _name) \
48 class_device_create_file(&_dev->class_dev, &class_device_attr_##_name) 50 device_create_file(&_dev->dev, &dev_attr_##_name)
49 51
50GFAR_ATTR(bd_stash); 52GFAR_ATTR(bd_stash);
51GFAR_ATTR(rx_stash_size); 53GFAR_ATTR(rx_stash_size);
@@ -54,29 +56,28 @@ GFAR_ATTR(fifo_threshold);
54GFAR_ATTR(fifo_starve); 56GFAR_ATTR(fifo_starve);
55GFAR_ATTR(fifo_starve_off); 57GFAR_ATTR(fifo_starve_off);
56 58
57#define to_net_dev(cd) container_of(cd, struct net_device, class_dev) 59static ssize_t gfar_show_bd_stash(struct device *dev,
58 60 struct device_attribute *attr, char *buf)
59static ssize_t gfar_show_bd_stash(struct class_device *cdev, char *buf)
60{ 61{
61 struct net_device *dev = to_net_dev(cdev); 62 struct gfar_private *priv = netdev_priv(to_net_dev(dev));
62 struct gfar_private *priv = netdev_priv(dev);
63 63
64 return sprintf(buf, "%s\n", priv->bd_stash_en? "on" : "off"); 64 return sprintf(buf, "%s\n", priv->bd_stash_en ? "on" : "off");
65} 65}
66 66
67static ssize_t gfar_set_bd_stash(struct class_device *cdev, 67static ssize_t gfar_set_bd_stash(struct device *dev,
68 const char *buf, size_t count) 68 struct device_attribute *attr,
69 const char *buf, size_t count)
69{ 70{
70 struct net_device *dev = to_net_dev(cdev); 71 struct gfar_private *priv = netdev_priv(to_net_dev(dev));
71 struct gfar_private *priv = netdev_priv(dev);
72 int new_setting = 0; 72 int new_setting = 0;
73 u32 temp; 73 u32 temp;
74 unsigned long flags; 74 unsigned long flags;
75 75
76 /* Find out the new setting */ 76 /* Find out the new setting */
77 if (!strncmp("on", buf, count-1) || !strncmp("1", buf, count-1)) 77 if (!strncmp("on", buf, count - 1) || !strncmp("1", buf, count - 1))
78 new_setting = 1; 78 new_setting = 1;
79 else if (!strncmp("off", buf, count-1) || !strncmp("0", buf, count-1)) 79 else if (!strncmp("off", buf, count - 1)
80 || !strncmp("0", buf, count - 1))
80 new_setting = 0; 81 new_setting = 0;
81 else 82 else
82 return count; 83 return count;
@@ -100,19 +101,19 @@ static ssize_t gfar_set_bd_stash(struct class_device *cdev,
100 return count; 101 return count;
101} 102}
102 103
103static ssize_t gfar_show_rx_stash_size(struct class_device *cdev, char *buf) 104static ssize_t gfar_show_rx_stash_size(struct device *dev,
105 struct device_attribute *attr, char *buf)
104{ 106{
105 struct net_device *dev = to_net_dev(cdev); 107 struct gfar_private *priv = netdev_priv(to_net_dev(dev));
106 struct gfar_private *priv = netdev_priv(dev);
107 108
108 return sprintf(buf, "%d\n", priv->rx_stash_size); 109 return sprintf(buf, "%d\n", priv->rx_stash_size);
109} 110}
110 111
111static ssize_t gfar_set_rx_stash_size(struct class_device *cdev, 112static ssize_t gfar_set_rx_stash_size(struct device *dev,
112 const char *buf, size_t count) 113 struct device_attribute *attr,
114 const char *buf, size_t count)
113{ 115{
114 struct net_device *dev = to_net_dev(cdev); 116 struct gfar_private *priv = netdev_priv(to_net_dev(dev));
115 struct gfar_private *priv = netdev_priv(dev);
116 unsigned int length = simple_strtoul(buf, NULL, 0); 117 unsigned int length = simple_strtoul(buf, NULL, 0);
117 u32 temp; 118 u32 temp;
118 unsigned long flags; 119 unsigned long flags;
@@ -146,21 +147,21 @@ static ssize_t gfar_set_rx_stash_size(struct class_device *cdev,
146 return count; 147 return count;
147} 148}
148 149
149
150/* Stashing will only be enabled when rx_stash_size != 0 */ 150/* Stashing will only be enabled when rx_stash_size != 0 */
151static ssize_t gfar_show_rx_stash_index(struct class_device *cdev, char *buf) 151static ssize_t gfar_show_rx_stash_index(struct device *dev,
152 struct device_attribute *attr,
153 char *buf)
152{ 154{
153 struct net_device *dev = to_net_dev(cdev); 155 struct gfar_private *priv = netdev_priv(to_net_dev(dev));
154 struct gfar_private *priv = netdev_priv(dev);
155 156
156 return sprintf(buf, "%d\n", priv->rx_stash_index); 157 return sprintf(buf, "%d\n", priv->rx_stash_index);
157} 158}
158 159
159static ssize_t gfar_set_rx_stash_index(struct class_device *cdev, 160static ssize_t gfar_set_rx_stash_index(struct device *dev,
160 const char *buf, size_t count) 161 struct device_attribute *attr,
162 const char *buf, size_t count)
161{ 163{
162 struct net_device *dev = to_net_dev(cdev); 164 struct gfar_private *priv = netdev_priv(to_net_dev(dev));
163 struct gfar_private *priv = netdev_priv(dev);
164 unsigned short index = simple_strtoul(buf, NULL, 0); 165 unsigned short index = simple_strtoul(buf, NULL, 0);
165 u32 temp; 166 u32 temp;
166 unsigned long flags; 167 unsigned long flags;
@@ -184,19 +185,20 @@ static ssize_t gfar_set_rx_stash_index(struct class_device *cdev,
184 return count; 185 return count;
185} 186}
186 187
187static ssize_t gfar_show_fifo_threshold(struct class_device *cdev, char *buf) 188static ssize_t gfar_show_fifo_threshold(struct device *dev,
189 struct device_attribute *attr,
190 char *buf)
188{ 191{
189 struct net_device *dev = to_net_dev(cdev); 192 struct gfar_private *priv = netdev_priv(to_net_dev(dev));
190 struct gfar_private *priv = netdev_priv(dev);
191 193
192 return sprintf(buf, "%d\n", priv->fifo_threshold); 194 return sprintf(buf, "%d\n", priv->fifo_threshold);
193} 195}
194 196
195static ssize_t gfar_set_fifo_threshold(struct class_device *cdev, 197static ssize_t gfar_set_fifo_threshold(struct device *dev,
196 const char *buf, size_t count) 198 struct device_attribute *attr,
199 const char *buf, size_t count)
197{ 200{
198 struct net_device *dev = to_net_dev(cdev); 201 struct gfar_private *priv = netdev_priv(to_net_dev(dev));
199 struct gfar_private *priv = netdev_priv(dev);
200 unsigned int length = simple_strtoul(buf, NULL, 0); 202 unsigned int length = simple_strtoul(buf, NULL, 0);
201 u32 temp; 203 u32 temp;
202 unsigned long flags; 204 unsigned long flags;
@@ -218,20 +220,19 @@ static ssize_t gfar_set_fifo_threshold(struct class_device *cdev,
218 return count; 220 return count;
219} 221}
220 222
221static ssize_t gfar_show_fifo_starve(struct class_device *cdev, char *buf) 223static ssize_t gfar_show_fifo_starve(struct device *dev,
224 struct device_attribute *attr, char *buf)
222{ 225{
223 struct net_device *dev = to_net_dev(cdev); 226 struct gfar_private *priv = netdev_priv(to_net_dev(dev));
224 struct gfar_private *priv = netdev_priv(dev);
225 227
226 return sprintf(buf, "%d\n", priv->fifo_starve); 228 return sprintf(buf, "%d\n", priv->fifo_starve);
227} 229}
228 230
229 231static ssize_t gfar_set_fifo_starve(struct device *dev,
230static ssize_t gfar_set_fifo_starve(struct class_device *cdev, 232 struct device_attribute *attr,
231 const char *buf, size_t count) 233 const char *buf, size_t count)
232{ 234{
233 struct net_device *dev = to_net_dev(cdev); 235 struct gfar_private *priv = netdev_priv(to_net_dev(dev));
234 struct gfar_private *priv = netdev_priv(dev);
235 unsigned int num = simple_strtoul(buf, NULL, 0); 236 unsigned int num = simple_strtoul(buf, NULL, 0);
236 u32 temp; 237 u32 temp;
237 unsigned long flags; 238 unsigned long flags;
@@ -253,19 +254,20 @@ static ssize_t gfar_set_fifo_starve(struct class_device *cdev,
253 return count; 254 return count;
254} 255}
255 256
256static ssize_t gfar_show_fifo_starve_off(struct class_device *cdev, char *buf) 257static ssize_t gfar_show_fifo_starve_off(struct device *dev,
258 struct device_attribute *attr,
259 char *buf)
257{ 260{
258 struct net_device *dev = to_net_dev(cdev); 261 struct gfar_private *priv = netdev_priv(to_net_dev(dev));
259 struct gfar_private *priv = netdev_priv(dev);
260 262
261 return sprintf(buf, "%d\n", priv->fifo_starve_off); 263 return sprintf(buf, "%d\n", priv->fifo_starve_off);
262} 264}
263 265
264static ssize_t gfar_set_fifo_starve_off(struct class_device *cdev, 266static ssize_t gfar_set_fifo_starve_off(struct device *dev,
265 const char *buf, size_t count) 267 struct device_attribute *attr,
268 const char *buf, size_t count)
266{ 269{
267 struct net_device *dev = to_net_dev(cdev); 270 struct gfar_private *priv = netdev_priv(to_net_dev(dev));
268 struct gfar_private *priv = netdev_priv(dev);
269 unsigned int num = simple_strtoul(buf, NULL, 0); 271 unsigned int num = simple_strtoul(buf, NULL, 0);
270 u32 temp; 272 u32 temp;
271 unsigned long flags; 273 unsigned long flags;
diff --git a/drivers/net/hamradio/bpqether.c b/drivers/net/hamradio/bpqether.c
index 5b788d84011f..d2542697e298 100644
--- a/drivers/net/hamradio/bpqether.c
+++ b/drivers/net/hamradio/bpqether.c
@@ -459,7 +459,7 @@ static int bpq_info_open(struct inode *inode, struct file *file)
459 return seq_open(file, &bpq_seqops); 459 return seq_open(file, &bpq_seqops);
460} 460}
461 461
462static struct file_operations bpq_info_fops = { 462static const struct file_operations bpq_info_fops = {
463 .owner = THIS_MODULE, 463 .owner = THIS_MODULE,
464 .open = bpq_info_open, 464 .open = bpq_info_open,
465 .read = seq_read, 465 .read = seq_read,
diff --git a/drivers/net/hamradio/scc.c b/drivers/net/hamradio/scc.c
index 2ce047e9d262..6fdaad5a4577 100644
--- a/drivers/net/hamradio/scc.c
+++ b/drivers/net/hamradio/scc.c
@@ -2083,7 +2083,7 @@ static int scc_net_seq_open(struct inode *inode, struct file *file)
2083 return seq_open(file, &scc_net_seq_ops); 2083 return seq_open(file, &scc_net_seq_ops);
2084} 2084}
2085 2085
2086static struct file_operations scc_net_seq_fops = { 2086static const struct file_operations scc_net_seq_fops = {
2087 .owner = THIS_MODULE, 2087 .owner = THIS_MODULE,
2088 .open = scc_net_seq_open, 2088 .open = scc_net_seq_open,
2089 .read = seq_read, 2089 .read = seq_read,
diff --git a/drivers/net/hamradio/yam.c b/drivers/net/hamradio/yam.c
index 6d74f08720d5..08f27119a807 100644
--- a/drivers/net/hamradio/yam.c
+++ b/drivers/net/hamradio/yam.c
@@ -804,7 +804,7 @@ static int yam_info_open(struct inode *inode, struct file *file)
804 return seq_open(file, &yam_seqops); 804 return seq_open(file, &yam_seqops);
805} 805}
806 806
807static struct file_operations yam_info_fops = { 807static const struct file_operations yam_info_fops = {
808 .owner = THIS_MODULE, 808 .owner = THIS_MODULE,
809 .open = yam_info_open, 809 .open = yam_info_open,
810 .read = seq_read, 810 .read = seq_read,
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c
index 99343b5836b8..458db0538a9a 100644
--- a/drivers/net/ibmveth.c
+++ b/drivers/net/ibmveth.c
@@ -1156,7 +1156,7 @@ static int ibmveth_proc_open(struct inode *inode, struct file *file)
1156 return rc; 1156 return rc;
1157} 1157}
1158 1158
1159static struct file_operations ibmveth_proc_fops = { 1159static const struct file_operations ibmveth_proc_fops = {
1160 .owner = THIS_MODULE, 1160 .owner = THIS_MODULE,
1161 .open = ibmveth_proc_open, 1161 .open = ibmveth_proc_open,
1162 .read = seq_read, 1162 .read = seq_read,
diff --git a/drivers/net/irda/vlsi_ir.c b/drivers/net/irda/vlsi_ir.c
index e2b1af618450..3457e9d8b667 100644
--- a/drivers/net/irda/vlsi_ir.c
+++ b/drivers/net/irda/vlsi_ir.c
@@ -385,7 +385,7 @@ static int vlsi_seq_open(struct inode *inode, struct file *file)
385 return single_open(file, vlsi_seq_show, PDE(inode)->data); 385 return single_open(file, vlsi_seq_show, PDE(inode)->data);
386} 386}
387 387
388static struct file_operations vlsi_proc_fops = { 388static const struct file_operations vlsi_proc_fops = {
389 .owner = THIS_MODULE, 389 .owner = THIS_MODULE,
390 .open = vlsi_seq_open, 390 .open = vlsi_seq_open,
391 .read = seq_read, 391 .read = seq_read,
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c
index c6de566188e4..11b575f89856 100644
--- a/drivers/net/ppp_generic.c
+++ b/drivers/net/ppp_generic.c
@@ -83,7 +83,7 @@ struct ppp_file {
83 int dead; /* unit/channel has been shut down */ 83 int dead; /* unit/channel has been shut down */
84}; 84};
85 85
86#define PF_TO_X(pf, X) ((X *)((char *)(pf) - offsetof(X, file))) 86#define PF_TO_X(pf, X) container_of(pf, X, file)
87 87
88#define PF_TO_PPP(pf) PF_TO_X(pf, struct ppp) 88#define PF_TO_PPP(pf) PF_TO_X(pf, struct ppp)
89#define PF_TO_CHANNEL(pf) PF_TO_X(pf, struct channel) 89#define PF_TO_CHANNEL(pf) PF_TO_X(pf, struct channel)
@@ -834,7 +834,7 @@ static int ppp_unattached_ioctl(struct ppp_file *pf, struct file *file,
834 return err; 834 return err;
835} 835}
836 836
837static struct file_operations ppp_device_fops = { 837static const struct file_operations ppp_device_fops = {
838 .owner = THIS_MODULE, 838 .owner = THIS_MODULE,
839 .read = ppp_read, 839 .read = ppp_read,
840 .write = ppp_write, 840 .write = ppp_write,
diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c
index 315d5c3fc66a..860bb0f60f68 100644
--- a/drivers/net/pppoe.c
+++ b/drivers/net/pppoe.c
@@ -1043,7 +1043,7 @@ static int pppoe_seq_open(struct inode *inode, struct file *file)
1043 return seq_open(file, &pppoe_seq_ops); 1043 return seq_open(file, &pppoe_seq_ops);
1044} 1044}
1045 1045
1046static struct file_operations pppoe_seq_fops = { 1046static const struct file_operations pppoe_seq_fops = {
1047 .owner = THIS_MODULE, 1047 .owner = THIS_MODULE,
1048 .open = pppoe_seq_open, 1048 .open = pppoe_seq_open,
1049 .read = seq_read, 1049 .read = seq_read,
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 151a2e10e4f3..5643d1e84ed6 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -744,7 +744,7 @@ static int tun_chr_close(struct inode *inode, struct file *file)
744 return 0; 744 return 0;
745} 745}
746 746
747static struct file_operations tun_fops = { 747static const struct file_operations tun_fops = {
748 .owner = THIS_MODULE, 748 .owner = THIS_MODULE,
749 .llseek = no_llseek, 749 .llseek = no_llseek,
750 .read = do_sync_read, 750 .read = do_sync_read,
diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c
index 6c7dfb50143f..e91b5a84a20a 100644
--- a/drivers/net/wan/cosa.c
+++ b/drivers/net/wan/cosa.c
@@ -311,7 +311,7 @@ static int cosa_chardev_ioctl(struct inode *inode, struct file *file,
311static int cosa_fasync(struct inode *inode, struct file *file, int on); 311static int cosa_fasync(struct inode *inode, struct file *file, int on);
312#endif 312#endif
313 313
314static struct file_operations cosa_fops = { 314static const struct file_operations cosa_fops = {
315 .owner = THIS_MODULE, 315 .owner = THIS_MODULE,
316 .llseek = no_llseek, 316 .llseek = no_llseek,
317 .read = cosa_read, 317 .read = cosa_read,
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c
index 44a22701da97..b08055abe83a 100644
--- a/drivers/net/wireless/airo.c
+++ b/drivers/net/wireless/airo.c
@@ -4430,53 +4430,53 @@ static int proc_BSSList_open( struct inode *inode, struct file *file );
4430static int proc_config_open( struct inode *inode, struct file *file ); 4430static int proc_config_open( struct inode *inode, struct file *file );
4431static int proc_wepkey_open( struct inode *inode, struct file *file ); 4431static int proc_wepkey_open( struct inode *inode, struct file *file );
4432 4432
4433static struct file_operations proc_statsdelta_ops = { 4433static const struct file_operations proc_statsdelta_ops = {
4434 .read = proc_read, 4434 .read = proc_read,
4435 .open = proc_statsdelta_open, 4435 .open = proc_statsdelta_open,
4436 .release = proc_close 4436 .release = proc_close
4437}; 4437};
4438 4438
4439static struct file_operations proc_stats_ops = { 4439static const struct file_operations proc_stats_ops = {
4440 .read = proc_read, 4440 .read = proc_read,
4441 .open = proc_stats_open, 4441 .open = proc_stats_open,
4442 .release = proc_close 4442 .release = proc_close
4443}; 4443};
4444 4444
4445static struct file_operations proc_status_ops = { 4445static const struct file_operations proc_status_ops = {
4446 .read = proc_read, 4446 .read = proc_read,
4447 .open = proc_status_open, 4447 .open = proc_status_open,
4448 .release = proc_close 4448 .release = proc_close
4449}; 4449};
4450 4450
4451static struct file_operations proc_SSID_ops = { 4451static const struct file_operations proc_SSID_ops = {
4452 .read = proc_read, 4452 .read = proc_read,
4453 .write = proc_write, 4453 .write = proc_write,
4454 .open = proc_SSID_open, 4454 .open = proc_SSID_open,
4455 .release = proc_close 4455 .release = proc_close
4456}; 4456};
4457 4457
4458static struct file_operations proc_BSSList_ops = { 4458static const struct file_operations proc_BSSList_ops = {
4459 .read = proc_read, 4459 .read = proc_read,
4460 .write = proc_write, 4460 .write = proc_write,
4461 .open = proc_BSSList_open, 4461 .open = proc_BSSList_open,
4462 .release = proc_close 4462 .release = proc_close
4463}; 4463};
4464 4464
4465static struct file_operations proc_APList_ops = { 4465static const struct file_operations proc_APList_ops = {
4466 .read = proc_read, 4466 .read = proc_read,
4467 .write = proc_write, 4467 .write = proc_write,
4468 .open = proc_APList_open, 4468 .open = proc_APList_open,
4469 .release = proc_close 4469 .release = proc_close
4470}; 4470};
4471 4471
4472static struct file_operations proc_config_ops = { 4472static const struct file_operations proc_config_ops = {
4473 .read = proc_read, 4473 .read = proc_read,
4474 .write = proc_write, 4474 .write = proc_write,
4475 .open = proc_config_open, 4475 .open = proc_config_open,
4476 .release = proc_close 4476 .release = proc_close
4477}; 4477};
4478 4478
4479static struct file_operations proc_wepkey_ops = { 4479static const struct file_operations proc_wepkey_ops = {
4480 .read = proc_read, 4480 .read = proc_read,
4481 .write = proc_write, 4481 .write = proc_write,
4482 .open = proc_wepkey_open, 4482 .open = proc_wepkey_open,
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c b/drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c
index b9df06a06ea9..35dbe4554513 100644
--- a/drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c
+++ b/drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c
@@ -355,37 +355,37 @@ out_up:
355#undef fappend 355#undef fappend
356 356
357 357
358static struct file_operations devinfo_fops = { 358static const struct file_operations devinfo_fops = {
359 .read = devinfo_read_file, 359 .read = devinfo_read_file,
360 .write = write_file_dummy, 360 .write = write_file_dummy,
361 .open = open_file_generic, 361 .open = open_file_generic,
362}; 362};
363 363
364static struct file_operations spromdump_fops = { 364static const struct file_operations spromdump_fops = {
365 .read = spromdump_read_file, 365 .read = spromdump_read_file,
366 .write = write_file_dummy, 366 .write = write_file_dummy,
367 .open = open_file_generic, 367 .open = open_file_generic,
368}; 368};
369 369
370static struct file_operations drvinfo_fops = { 370static const struct file_operations drvinfo_fops = {
371 .read = drvinfo_read_file, 371 .read = drvinfo_read_file,
372 .write = write_file_dummy, 372 .write = write_file_dummy,
373 .open = open_file_generic, 373 .open = open_file_generic,
374}; 374};
375 375
376static struct file_operations tsf_fops = { 376static const struct file_operations tsf_fops = {
377 .read = tsf_read_file, 377 .read = tsf_read_file,
378 .write = tsf_write_file, 378 .write = tsf_write_file,
379 .open = open_file_generic, 379 .open = open_file_generic,
380}; 380};
381 381
382static struct file_operations txstat_fops = { 382static const struct file_operations txstat_fops = {
383 .read = txstat_read_file, 383 .read = txstat_read_file,
384 .write = write_file_dummy, 384 .write = write_file_dummy,
385 .open = open_file_generic, 385 .open = open_file_generic,
386}; 386};
387 387
388static struct file_operations restart_fops = { 388static const struct file_operations restart_fops = {
389 .write = restart_write_file, 389 .write = restart_write_file,
390 .open = open_file_generic, 390 .open = open_file_generic,
391}; 391};
diff --git a/drivers/net/wireless/strip.c b/drivers/net/wireless/strip.c
index ce3a8bac66ff..f5ce1c6063d8 100644
--- a/drivers/net/wireless/strip.c
+++ b/drivers/net/wireless/strip.c
@@ -1160,7 +1160,7 @@ static int strip_seq_open(struct inode *inode, struct file *file)
1160 return seq_open(file, &strip_seq_ops); 1160 return seq_open(file, &strip_seq_ops);
1161} 1161}
1162 1162
1163static struct file_operations strip_seq_fops = { 1163static const struct file_operations strip_seq_fops = {
1164 .owner = THIS_MODULE, 1164 .owner = THIS_MODULE,
1165 .open = strip_seq_open, 1165 .open = strip_seq_open,
1166 .read = seq_read, 1166 .read = seq_read,