mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user