media: v4l2-ioctl: don't use CROP/COMPOSE_ACTIVE
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 5 Oct 2018 07:10:20 +0000 (03:10 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 20 Nov 2018 17:55:54 +0000 (12:55 -0500)
Drop the deprecated _ACTIVE part.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-ioctl.c

index c63746968fa3d714fcd6eaecd2f34d021503f08b..664c9af427abc9850315611388ea348ebcad57c6 100644 (file)
@@ -2214,9 +2214,9 @@ static int v4l_g_crop(const struct v4l2_ioctl_ops *ops,
 
        /* crop means compose for output devices */
        if (V4L2_TYPE_IS_OUTPUT(p->type))
-               s.target = V4L2_SEL_TGT_COMPOSE_ACTIVE;
+               s.target = V4L2_SEL_TGT_COMPOSE;
        else
-               s.target = V4L2_SEL_TGT_CROP_ACTIVE;
+               s.target = V4L2_SEL_TGT_CROP;
 
        ret = v4l_g_selection(ops, file, fh, &s);
 
@@ -2241,9 +2241,9 @@ static int v4l_s_crop(const struct v4l2_ioctl_ops *ops,
 
        /* crop means compose for output devices */
        if (V4L2_TYPE_IS_OUTPUT(p->type))
-               s.target = V4L2_SEL_TGT_COMPOSE_ACTIVE;
+               s.target = V4L2_SEL_TGT_COMPOSE;
        else
-               s.target = V4L2_SEL_TGT_CROP_ACTIVE;
+               s.target = V4L2_SEL_TGT_CROP;
 
        return v4l_s_selection(ops, file, fh, &s);
 }