Commit 75ef9de1267ba171ecefafca35758e2be0db10dc

Authored by Al Viro
1 parent c10c062cad

constify a bunch of struct file_operations instances

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Showing 13 changed files with 17 additions and 17 deletions Side-by-side Diff

arch/powerpc/kvm/book3s_64_mmu_hv.c
... ... @@ -1467,7 +1467,7 @@
1467 1467 return 0;
1468 1468 }
1469 1469  
1470   -static struct file_operations kvm_htab_fops = {
  1470 +static const struct file_operations kvm_htab_fops = {
1471 1471 .read = kvm_htab_read,
1472 1472 .write = kvm_htab_write,
1473 1473 .llseek = default_llseek,
arch/powerpc/kvm/book3s_64_vio.c
... ... @@ -92,7 +92,7 @@
92 92 return 0;
93 93 }
94 94  
95   -static struct file_operations kvm_spapr_tce_fops = {
  95 +static const struct file_operations kvm_spapr_tce_fops = {
96 96 .mmap = kvm_spapr_tce_mmap,
97 97 .release = kvm_spapr_tce_release,
98 98 };
arch/powerpc/kvm/book3s_hv.c
... ... @@ -1483,7 +1483,7 @@
1483 1483 return 0;
1484 1484 }
1485 1485  
1486   -static struct file_operations kvm_rma_fops = {
  1486 +static const struct file_operations kvm_rma_fops = {
1487 1487 .mmap = kvm_rma_mmap,
1488 1488 .release = kvm_rma_release,
1489 1489 };
drivers/media/rc/ir-lirc-codec.c
... ... @@ -307,7 +307,7 @@
307 307 return;
308 308 }
309 309  
310   -static struct file_operations lirc_fops = {
  310 +static const struct file_operations lirc_fops = {
311 311 .owner = THIS_MODULE,
312 312 .write = ir_lirc_transmit_ir,
313 313 .unlocked_ioctl = ir_lirc_ioctl,
drivers/media/rc/lirc_dev.c
... ... @@ -152,7 +152,7 @@
152 152 }
153 153  
154 154  
155   -static struct file_operations lirc_dev_fops = {
  155 +static const struct file_operations lirc_dev_fops = {
156 156 .owner = THIS_MODULE,
157 157 .read = lirc_dev_fop_read,
158 158 .write = lirc_dev_fop_write,
drivers/s390/cio/qdio_debug.c
... ... @@ -224,7 +224,7 @@
224 224 file_inode(filp)->i_private);
225 225 }
226 226  
227   -static struct file_operations debugfs_perf_fops = {
  227 +static const struct file_operations debugfs_perf_fops = {
228 228 .owner = THIS_MODULE,
229 229 .open = qperf_seq_open,
230 230 .read = seq_read,
drivers/scsi/qla2xxx/qla_os.c
... ... @@ -5351,7 +5351,7 @@
5351 5351 .err_handler = &qla2xxx_err_handler,
5352 5352 };
5353 5353  
5354   -static struct file_operations apidev_fops = {
  5354 +static const struct file_operations apidev_fops = {
5355 5355 .owner = THIS_MODULE,
5356 5356 .llseek = noop_llseek,
5357 5357 };
drivers/staging/csr/drv.c
... ... @@ -1941,7 +1941,7 @@
1941 1941 *
1942 1942 ****************************************************************************
1943 1943 */
1944   -static struct file_operations unifi_fops = {
  1944 +static const struct file_operations unifi_fops = {
1945 1945 .owner = THIS_MODULE,
1946 1946 .open = unifi_open,
1947 1947 .release = unifi_release,
... ... @@ -2041,7 +2041,7 @@
2041 2041 * ----------------------------------------------------------------
2042 2042 */
2043 2043 static int
2044   -uf_create_debug_device(struct file_operations *fops)
  2044 +uf_create_debug_device(const struct file_operations *fops)
2045 2045 {
2046 2046 int ret;
2047 2047  
drivers/staging/dgrp/dgrp_specproc.c
... ... @@ -63,7 +63,7 @@
63 63 static int dgrp_info_proc_open(struct inode *inode, struct file *file);
64 64 static int dgrp_config_proc_open(struct inode *inode, struct file *file);
65 65  
66   -static struct file_operations config_proc_file_ops = {
  66 +static const struct file_operations config_proc_file_ops = {
67 67 .owner = THIS_MODULE,
68 68 .open = dgrp_config_proc_open,
69 69 .read = seq_read,
... ... @@ -72,7 +72,7 @@
72 72 .write = dgrp_config_proc_write,
73 73 };
74 74  
75   -static struct file_operations info_proc_file_ops = {
  75 +static const struct file_operations info_proc_file_ops = {
76 76 .owner = THIS_MODULE,
77 77 .open = dgrp_info_proc_open,
78 78 .read = seq_read,
... ... @@ -80,7 +80,7 @@
80 80 .release = single_release,
81 81 };
82 82  
83   -static struct file_operations nodeinfo_proc_file_ops = {
  83 +static const struct file_operations nodeinfo_proc_file_ops = {
84 84 .owner = THIS_MODULE,
85 85 .open = dgrp_nodeinfo_proc_open,
86 86 .read = seq_read,
drivers/staging/ft1000/ft1000-usb/ft1000_debug.c
... ... @@ -55,7 +55,7 @@
55 55 //
56 56 // Table of entry-point routines for char device
57 57 //
58   -static struct file_operations ft1000fops =
  58 +static const struct file_operations ft1000fops =
59 59 {
60 60 .unlocked_ioctl = ft1000_ioctl,
61 61 .poll = ft1000_poll_dev,
drivers/staging/rtl8192u/ieee80211/proc.c
... ... @@ -99,7 +99,7 @@
99 99 return seq_open(file, &crypto_seq_ops);
100 100 }
101 101  
102   -static struct file_operations proc_crypto_ops = {
  102 +static const struct file_operations proc_crypto_ops = {
103 103 .open = crypto_info_open,
104 104 .read = seq_read,
105 105 .llseek = seq_lseek,
drivers/staging/silicom/bpctl_mod.c
... ... @@ -5803,7 +5803,7 @@
5803 5803 return ret;
5804 5804 }
5805 5805  
5806   -struct file_operations Fops = {
  5806 +static const struct file_operations Fops = {
5807 5807 .owner = THIS_MODULE,
5808 5808 .unlocked_ioctl = device_ioctl,
5809 5809 .open = device_open,
... ... @@ -177,7 +177,7 @@
177 177 return single_open(file, export_features_show, NULL);
178 178 }
179 179  
180   -static struct file_operations export_features_operations = {
  180 +static const struct file_operations export_features_operations = {
181 181 .open = export_features_open,
182 182 .read = seq_read,
183 183 .llseek = seq_lseek,
... ... @@ -196,7 +196,7 @@
196 196 return single_open(file, supported_enctypes_show, NULL);
197 197 }
198 198  
199   -static struct file_operations supported_enctypes_ops = {
  199 +static const struct file_operations supported_enctypes_ops = {
200 200 .open = supported_enctypes_open,
201 201 .read = seq_read,
202 202 .llseek = seq_lseek,