[media] mcam-core: use v4l2_s_ctrl instead of the s_ctrl op
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 3 Jul 2016 11:58:55 +0000 (08:58 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 12 Jul 2016 14:13:30 +0000 (11:13 -0300)
This op is deprecated and should not be used anymore.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/marvell-ccic/mcam-core.c

index 9171174521b230670231758795c7c5b1ade183b1..af59bf4dca2dd017dcee63d027c01ba13c5a1e80 100644 (file)
@@ -973,7 +973,7 @@ static int mcam_cam_set_flip(struct mcam_camera *cam)
        memset(&ctrl, 0, sizeof(ctrl));
        ctrl.id = V4L2_CID_VFLIP;
        ctrl.value = flip;
-       return sensor_call(cam, core, s_ctrl, &ctrl);
+       return v4l2_s_ctrl(NULL, cam->sensor->ctrl_handler, &ctrl);
 }