From 982bbcaec5f22a56dd4b6294905d26187f8f79dd Mon Sep 17 00:00:00 2001 From: Sakari Ailus Date: Wed, 23 May 2012 01:30:59 +0300 Subject: Drop _ACTUAL from selection target names Signed-off-by: Sakari Ailus Signed-off-by: Laurent Pinchart --- src/v4l2subdev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/v4l2subdev.c') diff --git a/src/v4l2subdev.c b/src/v4l2subdev.c index d60bd7e..fcf3ec5 100644 --- a/src/v4l2subdev.c +++ b/src/v4l2subdev.c @@ -129,7 +129,7 @@ int v4l2_subdev_get_selection(struct media_entity *entity, *rect = u.sel.r; return 0; } - if (errno != ENOTTY || target != V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL) + if (errno != ENOTTY || target != V4L2_SUBDEV_SEL_TGT_CROP) return -errno; memset(&u.crop, 0, sizeof(u.crop)); @@ -169,7 +169,7 @@ int v4l2_subdev_set_selection(struct media_entity *entity, *rect = u.sel.r; return 0; } - if (errno != ENOTTY || target != V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL) + if (errno != ENOTTY || target != V4L2_SUBDEV_SEL_TGT_CROP) return -errno; memset(&u.crop, 0, sizeof(u.crop)); @@ -519,11 +519,11 @@ static int v4l2_subdev_parse_setup_format(struct media_device *media, return ret; } - ret = set_selection(pad, V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL, &crop); + ret = set_selection(pad, V4L2_SUBDEV_SEL_TGT_CROP, &crop); if (ret < 0) return ret; - ret = set_selection(pad, V4L2_SUBDEV_SEL_TGT_COMPOSE_ACTUAL, &compose); + ret = set_selection(pad, V4L2_SUBDEV_SEL_TGT_COMPOSE, &compose); if (ret < 0) return ret; -- cgit v1.2.3