[media] via-camera: use v4l2_s_ctrl instead of the s_ctrl op
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 3 Jul 2016 12:13:04 +0000 (09:13 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 12 Jul 2016 14:14:04 +0000 (11:14 -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/via-camera.c

index 1254f7e4d73217b81681cb41a81571f60fa76eb2..7ca12deba89c147ea7e9f11895283c9cda46d3ed 100644 (file)
@@ -240,7 +240,7 @@ static int viacam_set_flip(struct via_camera *cam)
        memset(&ctrl, 0, sizeof(ctrl));
        ctrl.id = V4L2_CID_VFLIP;
        ctrl.value = flip_image;
-       return sensor_call(cam, core, s_ctrl, &ctrl);
+       return v4l2_s_ctrl(NULL, cam->sensor->ctrl_handler, &ctrl);
 }
 
 /*