|
@@ -34,21 +34,21 @@
|
|
#include <net/irda/irlap.h>
|
|
#include <net/irda/irlap.h>
|
|
#include <net/irda/irlmp.h>
|
|
#include <net/irda/irlmp.h>
|
|
|
|
|
|
-extern struct file_operations discovery_seq_fops;
|
|
|
|
-extern struct file_operations irlap_seq_fops;
|
|
|
|
-extern struct file_operations irlmp_seq_fops;
|
|
|
|
-extern struct file_operations irttp_seq_fops;
|
|
|
|
-extern struct file_operations irias_seq_fops;
|
|
|
|
|
|
+extern const struct file_operations discovery_seq_fops;
|
|
|
|
+extern const struct file_operations irlap_seq_fops;
|
|
|
|
+extern const struct file_operations irlmp_seq_fops;
|
|
|
|
+extern const struct file_operations irttp_seq_fops;
|
|
|
|
+extern const struct file_operations irias_seq_fops;
|
|
|
|
|
|
struct irda_entry {
|
|
struct irda_entry {
|
|
const char *name;
|
|
const char *name;
|
|
- struct file_operations *fops;
|
|
|
|
|
|
+ const struct file_operations *fops;
|
|
};
|
|
};
|
|
|
|
|
|
struct proc_dir_entry *proc_irda;
|
|
struct proc_dir_entry *proc_irda;
|
|
EXPORT_SYMBOL(proc_irda);
|
|
EXPORT_SYMBOL(proc_irda);
|
|
|
|
|
|
-static struct irda_entry irda_dirs[] = {
|
|
|
|
|
|
+static const struct irda_entry irda_dirs[] = {
|
|
{"discovery", &discovery_seq_fops},
|
|
{"discovery", &discovery_seq_fops},
|
|
{"irttp", &irttp_seq_fops},
|
|
{"irttp", &irttp_seq_fops},
|
|
{"irlmp", &irlmp_seq_fops},
|
|
{"irlmp", &irlmp_seq_fops},
|