diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-09-01 15:25:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-02 04:03:53 -0400 |
commit | 5ca1b998d33c39819fca2b675d80c4469e705f2d (patch) | |
tree | fbe882f3908b6b57ae3fe54d13abb0067538276d /net/irda/irproc.c | |
parent | 3b401a81c0d50ea9c718cf837f62cc2e6e79cc30 (diff) |
net: file_operations should be const
All instances of file_operations should be const.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda/irproc.c')
-rw-r--r-- | net/irda/irproc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/irda/irproc.c b/net/irda/irproc.c index 8ff1861649e8..318766e5dbdf 100644 --- a/net/irda/irproc.c +++ b/net/irda/irproc.c | |||
@@ -34,21 +34,21 @@ | |||
34 | #include <net/irda/irlap.h> | 34 | #include <net/irda/irlap.h> |
35 | #include <net/irda/irlmp.h> | 35 | #include <net/irda/irlmp.h> |
36 | 36 | ||
37 | extern struct file_operations discovery_seq_fops; | 37 | extern const struct file_operations discovery_seq_fops; |
38 | extern struct file_operations irlap_seq_fops; | 38 | extern const struct file_operations irlap_seq_fops; |
39 | extern struct file_operations irlmp_seq_fops; | 39 | extern const struct file_operations irlmp_seq_fops; |
40 | extern struct file_operations irttp_seq_fops; | 40 | extern const struct file_operations irttp_seq_fops; |
41 | extern struct file_operations irias_seq_fops; | 41 | extern const struct file_operations irias_seq_fops; |
42 | 42 | ||
43 | struct irda_entry { | 43 | struct irda_entry { |
44 | const char *name; | 44 | const char *name; |
45 | struct file_operations *fops; | 45 | const struct file_operations *fops; |
46 | }; | 46 | }; |
47 | 47 | ||
48 | struct proc_dir_entry *proc_irda; | 48 | struct proc_dir_entry *proc_irda; |
49 | EXPORT_SYMBOL(proc_irda); | 49 | EXPORT_SYMBOL(proc_irda); |
50 | 50 | ||
51 | static struct irda_entry irda_dirs[] = { | 51 | static const struct irda_entry irda_dirs[] = { |
52 | {"discovery", &discovery_seq_fops}, | 52 | {"discovery", &discovery_seq_fops}, |
53 | {"irttp", &irttp_seq_fops}, | 53 | {"irttp", &irttp_seq_fops}, |
54 | {"irlmp", &irlmp_seq_fops}, | 54 | {"irlmp", &irlmp_seq_fops}, |