• Arnd Bergmann's avatar
    media: dvb: move most compat_ioctl handling into drivers · 8a24280b
    Arnd Bergmann authored
    Most DVB audio and video ioctl commands are completely compatible,
    and are implemented by just two drivers: ttpci and ivtv. In both
    cases, we can use the same ioctl handler for both native and
    compat ioctl handling, and remove the entries from the global
    lookup table.
    
    In case of ttpci, this directly hooks into the file_operations
    structure, and for ivtv, we have to set the compat_ioctl32
    method in v4l2_file_operations. For all I can tell, setting it
    to video_ioctl2 will still do the right thing for all commands.
    
    Note that for the VIDEO_STILLPICTURE and VIDEO_GET_EVENT commands,
    a translation handler in fs/compat_ioctl.c is still used. This
    works because the command numbers are different on 32-bit
    systems.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
    8a24280b
compat_ioctl.c 39.5 KB