[media] soc-camera: Use new selection target definitions
authorSylwester Nawrocki <sylvester.nawrocki@gmail.com>
Wed, 22 Aug 2012 21:03:30 +0000 (18:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 6 Oct 2012 12:11:18 +0000 (09:11 -0300)
Replace the deprecated V4L2_SEL_TGT_*_ACTIVE selection target
names with their new unified counterparts.
Compatibility definitions are already in linux/v4l2-common.h.

Signed-off-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/soc_camera/soc_camera.c

index 3be92944f8e7efd7e44d8ff0f7acf37c8f8af084..d9b53569459c2a161c1fd58eaaaef54165769599 100644 (file)
@@ -950,11 +950,11 @@ static int soc_camera_s_selection(struct file *file, void *fh,
 
        /* In all these cases cropping emulation will not help */
        if (s->type != V4L2_BUF_TYPE_VIDEO_CAPTURE ||
-           (s->target != V4L2_SEL_TGT_COMPOSE_ACTIVE &&
-            s->target != V4L2_SEL_TGT_CROP_ACTIVE))
+           (s->target != V4L2_SEL_TGT_COMPOSE &&
+            s->target != V4L2_SEL_TGT_CROP))
                return -EINVAL;
 
-       if (s->target == V4L2_SEL_TGT_COMPOSE_ACTIVE) {
+       if (s->target == V4L2_SEL_TGT_COMPOSE) {
                /* No output size change during a running capture! */
                if (is_streaming(ici, icd) &&
                    (icd->user_width != s->r.width ||
@@ -974,7 +974,7 @@ static int soc_camera_s_selection(struct file *file, void *fh,
 
        ret = ici->ops->set_selection(icd, s);
        if (!ret &&
-           s->target == V4L2_SEL_TGT_COMPOSE_ACTIVE) {
+           s->target == V4L2_SEL_TGT_COMPOSE) {
                icd->user_width = s->r.width;
                icd->user_height = s->r.height;
                if (!icd->streamer)