usb: gadget: uvc: add compat_ioctl

This allows 32 bit owners of uvc video to make ioctls
into a 64 bit kernel.

All of the current uvc ioctls can be handled with the
same struct definitions as regular ioctl.

Change-Id: Ia31b26147ab619f0673f94b6662eaf181a9eb5dd
Signed-off-by: William Wu <william.wu@rock-chips.com>
This commit is contained in:
William Wu
2018-10-31 17:52:02 +08:00
committed by Tao Huang
parent cbb0b7c4f6
commit ccc5c5b34c

View File

@@ -356,6 +356,9 @@ const struct v4l2_file_operations uvc_v4l2_fops = {
.open = uvc_v4l2_open,
.release = uvc_v4l2_release,
.unlocked_ioctl = video_ioctl2,
#ifdef CONFIG_COMPAT
.compat_ioctl32 = video_ioctl2,
#endif
.mmap = uvc_v4l2_mmap,
.poll = uvc_v4l2_poll,
#ifndef CONFIG_MMU