diff --git a/drivers/media/v4l2-core/v4l2-compat-ioctl32.c b/drivers/media/v4l2-core/v4l2-compat-ioctl32.c index 017ad89ceff5..bb3e1e96b6df 100644 --- a/drivers/media/v4l2-core/v4l2-compat-ioctl32.c +++ b/drivers/media/v4l2-core/v4l2-compat-ioctl32.c @@ -913,7 +913,11 @@ struct v4l2_event32 { __u32 type; union { compat_s64 value64; +#ifdef CONFIG_USB_CONFIGFS_F_UVC_ROCKCHIP + __u8 data[4100]; +#else __u8 data[64]; +#endif } u; __u32 pending; __u32 sequence; diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index e21c709f18ef..049b20b9ab15 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -2153,7 +2153,11 @@ struct v4l2_event { struct v4l2_event_frame_sync frame_sync; struct v4l2_event_src_change src_change; struct v4l2_event_motion_det motion_det; +#ifdef CONFIG_USB_CONFIGFS_F_UVC_ROCKCHIP + __u8 data[4100]; +#else __u8 data[64]; +#endif } u; __u32 pending; __u32 sequence;