From: Petr Cvek Date: Mon, 1 May 2017 04:21:29 +0000 (-0300) Subject: [media] pxa_camera: Add (un)subscribe_event ioctl X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a065c2e52744b302d408436fbc1f153696ae0bd0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [media] pxa_camera: Add (un)subscribe_event ioctl The v4l2-compliance complains about nonexistent vidioc_subscribe_event and vidioc_unsubscribe_event calls. Add them to fix the complaints. Signed-off-by: Petr Cvek Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/pxa_camera.c b/drivers/media/platform/pxa_camera.c index a572fc9b7a73..ab1fa911849a 100644 --- a/drivers/media/platform/pxa_camera.c +++ b/drivers/media/platform/pxa_camera.c @@ -37,7 +37,9 @@ #include #include #include +#include #include +#include #include #include @@ -2090,6 +2092,8 @@ static const struct v4l2_ioctl_ops pxa_camera_ioctl_ops = { .vidioc_g_register = pxac_vidioc_g_register, .vidioc_s_register = pxac_vidioc_s_register, #endif + .vidioc_subscribe_event = v4l2_ctrl_subscribe_event, + .vidioc_unsubscribe_event = v4l2_event_unsubscribe, }; static struct v4l2_clk_ops pxa_camera_mclk_ops = {