aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-01-14 16:52:18 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-21 17:03:37 -0500
commit4101dec9ca64d40f0d673f0a40ba46ba2c60e117 (patch)
treeb730cbe021559ef06a2df16344be91457ee1b684
parent991990a12de42281f81b4e3a6471586d2d0caf6a (diff)
net: constify VFTs
Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/bonding/bond_main.c2
-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/pppoe.c2
-rw-r--r--drivers/net/pppol2tp.c4
-rw-r--r--drivers/net/wireless/ath5k/debug.c2
-rw-r--r--drivers/net/wireless/libertas/debugfs.c14
-rw-r--r--drivers/net/wireless/strip.c2
9 files changed, 16 insertions, 16 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 9fb388388fb7..21bce2c0fde2 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -3369,7 +3369,7 @@ static int bond_info_seq_show(struct seq_file *seq, void *v)
3369 return 0; 3369 return 0;
3370} 3370}
3371 3371
3372static struct seq_operations bond_info_seq_ops = { 3372static const struct seq_operations bond_info_seq_ops = {
3373 .start = bond_info_seq_start, 3373 .start = bond_info_seq_start,
3374 .next = bond_info_seq_next, 3374 .next = bond_info_seq_next,
3375 .stop = bond_info_seq_stop, 3375 .stop = bond_info_seq_stop,
diff --git a/drivers/net/hamradio/bpqether.c b/drivers/net/hamradio/bpqether.c
index 4bf0f19ecfa3..1f65d1edf132 100644
--- a/drivers/net/hamradio/bpqether.c
+++ b/drivers/net/hamradio/bpqether.c
@@ -443,7 +443,7 @@ static int bpq_seq_show(struct seq_file *seq, void *v)
443 return 0; 443 return 0;
444} 444}
445 445
446static struct seq_operations bpq_seqops = { 446static const struct seq_operations bpq_seqops = {
447 .start = bpq_seq_start, 447 .start = bpq_seq_start,
448 .next = bpq_seq_next, 448 .next = bpq_seq_next,
449 .stop = bpq_seq_stop, 449 .stop = bpq_seq_stop,
diff --git a/drivers/net/hamradio/scc.c b/drivers/net/hamradio/scc.c
index 49f9d2491d47..2acb18f06972 100644
--- a/drivers/net/hamradio/scc.c
+++ b/drivers/net/hamradio/scc.c
@@ -2074,7 +2074,7 @@ static int scc_net_seq_show(struct seq_file *seq, void *v)
2074 return 0; 2074 return 0;
2075} 2075}
2076 2076
2077static struct seq_operations scc_net_seq_ops = { 2077static const struct seq_operations scc_net_seq_ops = {
2078 .start = scc_net_seq_start, 2078 .start = scc_net_seq_start,
2079 .next = scc_net_seq_next, 2079 .next = scc_net_seq_next,
2080 .stop = scc_net_seq_stop, 2080 .stop = scc_net_seq_stop,
diff --git a/drivers/net/hamradio/yam.c b/drivers/net/hamradio/yam.c
index e2b0a19203ac..82a8be7613d6 100644
--- a/drivers/net/hamradio/yam.c
+++ b/drivers/net/hamradio/yam.c
@@ -783,7 +783,7 @@ static int yam_seq_show(struct seq_file *seq, void *v)
783 return 0; 783 return 0;
784} 784}
785 785
786static struct seq_operations yam_seqops = { 786static const struct seq_operations yam_seqops = {
787 .start = yam_seq_start, 787 .start = yam_seq_start,
788 .next = yam_seq_next, 788 .next = yam_seq_next,
789 .stop = yam_seq_stop, 789 .stop = yam_seq_stop,
diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c
index c22b30533a14..5efc3d172c8e 100644
--- a/drivers/net/pppoe.c
+++ b/drivers/net/pppoe.c
@@ -1030,7 +1030,7 @@ static void pppoe_seq_stop(struct seq_file *seq, void *v)
1030 read_unlock_bh(&pppoe_hash_lock); 1030 read_unlock_bh(&pppoe_hash_lock);
1031} 1031}
1032 1032
1033static struct seq_operations pppoe_seq_ops = { 1033static const struct seq_operations pppoe_seq_ops = {
1034 .start = pppoe_seq_start, 1034 .start = pppoe_seq_start,
1035 .next = pppoe_seq_next, 1035 .next = pppoe_seq_next,
1036 .stop = pppoe_seq_stop, 1036 .stop = pppoe_seq_stop,
diff --git a/drivers/net/pppol2tp.c b/drivers/net/pppol2tp.c
index f1a946785c6a..635dd5fbe62d 100644
--- a/drivers/net/pppol2tp.c
+++ b/drivers/net/pppol2tp.c
@@ -2517,7 +2517,7 @@ out:
2517 return 0; 2517 return 0;
2518} 2518}
2519 2519
2520static struct seq_operations pppol2tp_seq_ops = { 2520static const struct seq_operations pppol2tp_seq_ops = {
2521 .start = pppol2tp_seq_start, 2521 .start = pppol2tp_seq_start,
2522 .next = pppol2tp_seq_next, 2522 .next = pppol2tp_seq_next,
2523 .stop = pppol2tp_seq_stop, 2523 .stop = pppol2tp_seq_stop,
@@ -2565,7 +2565,7 @@ static int pppol2tp_proc_release(struct inode *inode, struct file *file)
2565 return seq_release(inode, file); 2565 return seq_release(inode, file);
2566} 2566}
2567 2567
2568static struct file_operations pppol2tp_proc_fops = { 2568static const struct file_operations pppol2tp_proc_fops = {
2569 .owner = THIS_MODULE, 2569 .owner = THIS_MODULE,
2570 .open = pppol2tp_proc_open, 2570 .open = pppol2tp_proc_open,
2571 .read = seq_read, 2571 .read = seq_read,
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
168static struct seq_operations register_seq_ops = { 168static 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;
634out_unlock: 634out_unlock:
635 free_page(addr); 635 free_page(addr);
@@ -680,12 +680,12 @@ out_unlock:
680} 680}
681 681
682struct lbs_debugfs_files { 682struct 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
688static struct lbs_debugfs_files debugfs_files[] = { 688static 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
696static struct lbs_debugfs_files debugfs_events_files[] = { 696static 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
711static struct lbs_debugfs_files debugfs_regs_files[] = { 711static 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)
735void lbs_debugfs_init_one(struct lbs_private *priv, struct net_device *dev) 735void 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
941static struct file_operations lbs_debug_fops = { 941static 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
1128static struct seq_operations strip_seq_ops = { 1128static 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,