aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88/cx88-video.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2006-01-09 12:24:57 -0500
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-09 12:24:57 -0500
commit0d0fbf8152fb3bb4393be11e8df7f70e1fbbd738 (patch)
tree98ef8850e6b769da7391665716e4e2348de21ec1 /drivers/media/video/cx88/cx88-video.c
parent5367f2d67c7d0bf1faae90e6e7b4e2ac3c9b5e0f (diff)
V4L (926_2): Moves compat32 functions from fs to v4l subsystem
This moves the 32 bit ioctl compatibility handlers for Video4Linux into a new file and adds explicit calls to them to each v4l device driver. Unfortunately, there does not seem to be any code handling the v4l2 ioctls, so quite often the code goes through two separate conversions, first from 32 bit v4l to 64 bit v4l, and from there to 64 bit v4l2. My patch does not change that, so there is still much room for improvement. Also, some drivers have additional ioctl numbers, for which the conversion should be handled internally to that driver. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'drivers/media/video/cx88/cx88-video.c')
-rw-r--r--drivers/media/video/cx88/cx88-video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c
index 24a48f8a48c1..bc025c46aedf 100644
--- a/drivers/media/video/cx88/cx88-video.c
+++ b/drivers/media/video/cx88/cx88-video.c
@@ -1740,6 +1740,7 @@ static struct file_operations video_fops =
1740 .poll = video_poll, 1740 .poll = video_poll,
1741 .mmap = video_mmap, 1741 .mmap = video_mmap,
1742 .ioctl = video_ioctl, 1742 .ioctl = video_ioctl,
1743 .compat_ioctl = v4l_compat_ioctl32,
1743 .llseek = no_llseek, 1744 .llseek = no_llseek,
1744}; 1745};
1745 1746
@@ -1767,6 +1768,7 @@ static struct file_operations radio_fops =
1767 .open = video_open, 1768 .open = video_open,
1768 .release = video_release, 1769 .release = video_release,
1769 .ioctl = radio_ioctl, 1770 .ioctl = radio_ioctl,
1771 .compat_ioctl = v4l_compat_ioctl32,
1770 .llseek = no_llseek, 1772 .llseek = no_llseek,
1771}; 1773};
1772 1774