diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 12:14:46 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 12:14:46 -0200 |
commit | 2d7689fdc8fa70fe6d3fbd2003a8c1cdaaa786b3 (patch) | |
tree | 8ed63a848128a280972014136e690f33140c44be /linux/drivers/media/video/usbvision/usbvision-video.c | |
parent | 9c80adbcf166dcd24b66a43c9303138ab4be5596 (diff) | |
download | mediapointer-dvb-s2-2d7689fdc8fa70fe6d3fbd2003a8c1cdaaa786b3.tar.gz mediapointer-dvb-s2-2d7689fdc8fa70fe6d3fbd2003a8c1cdaaa786b3.tar.bz2 |
Backport: make file_operations const
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Backport a kernel patch by Arjan van de Ven <arjan@linux.intel.com>
that made all file_operations instances const.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/usbvision/usbvision-video.c')
-rw-r--r-- | linux/drivers/media/video/usbvision/usbvision-video.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/video/usbvision/usbvision-video.c b/linux/drivers/media/video/usbvision/usbvision-video.c index ff9d1cbbb..d4d68fa5f 100644 --- a/linux/drivers/media/video/usbvision/usbvision-video.c +++ b/linux/drivers/media/video/usbvision/usbvision-video.c @@ -1589,7 +1589,7 @@ static struct video_device usbvision_video_template = { .minor = -1, }; #else -static struct file_operations usbvision_fops = { +static const struct file_operations usbvision_fops = { #if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,31) .owner = THIS_MODULE, #endif @@ -1630,7 +1630,7 @@ static struct video_device usbvision_radio_template= minor: -1, }; #else -static struct file_operations usbvision_radio_fops = { +static const struct file_operations usbvision_radio_fops = { #if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,31) .owner = THIS_MODULE, #endif @@ -1669,7 +1669,7 @@ static struct video_device usbvision_vbi_template= minor: -1, }; #else -static struct file_operations usbvision_vbi_fops = { +static const struct file_operations usbvision_vbi_fops = { #if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,31) .owner = THIS_MODULE, #endif |