Pārlūkot izejas kodu

V4L/DVB (7140): constify function pointer tables

Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Jan Engelhardt 17 gadi atpakaļ
vecāks
revīzija
27a643b1a9

+ 1 - 1
drivers/media/dvb/dvb-core/dvbdev.c

@@ -97,7 +97,7 @@ static int dvb_device_open(struct inode *inode, struct file *file)
 }
 
 
-static struct file_operations dvb_device_fops =
+static const struct file_operations dvb_device_fops =
 {
 	.owner =	THIS_MODULE,
 	.open =		dvb_device_open,

+ 1 - 1
drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c

@@ -1005,7 +1005,7 @@ static int stc_release(struct inode *inode, struct file *file)
 	return 0;
 }
 
-static struct file_operations stc_fops = {
+static const struct file_operations stc_fops = {
 	.owner = THIS_MODULE,
 	.read = stc_read,
 	.open = stc_open,