const: constify remaining file_operations
[akpm@linux-foundation.org: fix KVM] Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -1203,7 +1203,7 @@ static unsigned int dvb_dvr_poll(struct file *file, poll_table *wait)
|
||||
return mask;
|
||||
}
|
||||
|
||||
static struct file_operations dvb_dvr_fops = {
|
||||
static const struct file_operations dvb_dvr_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.read = dvb_dvr_read,
|
||||
.write = dvb_dvr_write,
|
||||
|
@@ -215,7 +215,7 @@ static unsigned int fdtv_ca_io_poll(struct file *file, poll_table *wait)
|
||||
return POLLIN;
|
||||
}
|
||||
|
||||
static struct file_operations fdtv_ca_fops = {
|
||||
static const struct file_operations fdtv_ca_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.ioctl = dvb_generic_ioctl,
|
||||
.open = dvb_generic_open,
|
||||
|
Reference in New Issue
Block a user