mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
net: file_operations should be const
All instances of file_operations should be const. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3b401a81c0
commit
5ca1b998d3
7 changed files with 14 additions and 14 deletions
|
|
@ -95,7 +95,7 @@ static int
|
|||
/**************************** VARIABLES ****************************/
|
||||
|
||||
/* Filesystem callbacks (to call us) */
|
||||
static struct file_operations irnet_device_fops =
|
||||
static const struct file_operations irnet_device_fops =
|
||||
{
|
||||
.owner = THIS_MODULE,
|
||||
.read = dev_irnet_read,
|
||||
|
|
|
|||
|
|
@ -34,21 +34,21 @@
|
|||
#include <net/irda/irlap.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 {
|
||||
const char *name;
|
||||
struct file_operations *fops;
|
||||
const struct file_operations *fops;
|
||||
};
|
||||
|
||||
struct proc_dir_entry *proc_irda;
|
||||
EXPORT_SYMBOL(proc_irda);
|
||||
|
||||
static struct irda_entry irda_dirs[] = {
|
||||
static const struct irda_entry irda_dirs[] = {
|
||||
{"discovery", &discovery_seq_fops},
|
||||
{"irttp", &irttp_seq_fops},
|
||||
{"irlmp", &irlmp_seq_fops},
|
||||
|
|
|
|||
Loading…
Reference in a new issue