V4L/DVB (3809a): Remove compat stuff for DMX_GET_EVENT
authorAndrew Morton <akpm@osdl.org>
Thu, 27 Apr 2006 15:01:18 +0000 (12:01 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 25 Jun 2006 04:58:10 +0000 (01:58 -0300)
The ioctl were removed by:
V4L/DVB (3727): Remove DMX_GET_EVENT and associated data structures
due to the ioctl DMX_GET_EVENT has never been implemented, and also
scrambling events can't be generated in a useful way by the hardware.

This patch removes the corresponding entry at fs/compat_ioctl.c

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
fs/compat_ioctl.c

index d2c38875ab296e45741c5dcf966da56ec51d8f96..9eb9824dd3323a1a0680653ef92a598efc76a287 100644 (file)
@@ -205,38 +205,6 @@ static int do_ext3_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
        return sys_ioctl(fd, cmd, (unsigned long)compat_ptr(arg));
 }
 
-struct compat_dmx_event {
-       dmx_event_t     event;
-       compat_time_t   timeStamp;
-       union
-       {
-               dmx_scrambling_status_t scrambling;
-       } u;
-};
-
-static int do_dmx_get_event(unsigned int fd, unsigned int cmd, unsigned long arg)
-{
-       struct dmx_event kevent;
-       mm_segment_t old_fs = get_fs();
-       int err;
-
-       set_fs(KERNEL_DS);
-       err = sys_ioctl(fd, cmd, (unsigned long) &kevent);
-       set_fs(old_fs);
-
-       if (!err) {
-               struct compat_dmx_event __user *up = compat_ptr(arg);
-
-               err  = put_user(kevent.event, &up->event);
-               err |= put_user(kevent.timeStamp, &up->timeStamp);
-               err |= put_user(kevent.u.scrambling, &up->u.scrambling);
-               if (err)
-                       err = -EFAULT;
-       }
-
-       return err;
-}
-
 struct compat_video_event {
        int32_t         type;
        compat_time_t   timestamp;
@@ -2964,7 +2932,6 @@ HANDLE_IOCTL(NCP_IOC_SETPRIVATEDATA_32, do_ncp_setprivatedata)
 #endif
 
 /* dvb */
-HANDLE_IOCTL(DMX_GET_EVENT, do_dmx_get_event)
 HANDLE_IOCTL(VIDEO_GET_EVENT, do_video_get_event)
 HANDLE_IOCTL(VIDEO_STILLPICTURE, do_video_stillpicture)
 HANDLE_IOCTL(VIDEO_SET_SPU_PALETTE, do_video_set_spu_palette)