summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pwc
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 12:14:46 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 12:14:46 -0200
commit2d7689fdc8fa70fe6d3fbd2003a8c1cdaaa786b3 (patch)
tree8ed63a848128a280972014136e690f33140c44be /linux/drivers/media/video/pwc
parent9c80adbcf166dcd24b66a43c9303138ab4be5596 (diff)
downloadmediapointer-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/pwc')
-rw-r--r--linux/drivers/media/video/pwc/pwc-if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/pwc/pwc-if.c b/linux/drivers/media/video/pwc/pwc-if.c
index 444148f02..782699cf9 100644
--- a/linux/drivers/media/video/pwc/pwc-if.c
+++ b/linux/drivers/media/video/pwc/pwc-if.c
@@ -152,7 +152,7 @@ static int pwc_video_ioctl(struct inode *inode, struct file *file,
unsigned int ioctlnr, unsigned long arg);
static int pwc_video_mmap(struct file *file, struct vm_area_struct *vma);
-static struct file_operations pwc_fops = {
+static const struct file_operations pwc_fops = {
.owner = THIS_MODULE,
.open = pwc_video_open,
.release = pwc_video_close,