diff options
Diffstat (limited to 'drivers/media/video/omap3isp/isppreview.c')
-rw-r--r-- | drivers/media/video/omap3isp/isppreview.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/omap3isp/isppreview.c b/drivers/media/video/omap3isp/isppreview.c index dd91da26f1b0..53f5a703e31a 100644 --- a/drivers/media/video/omap3isp/isppreview.c +++ b/drivers/media/video/omap3isp/isppreview.c | |||
@@ -1949,7 +1949,7 @@ static int preview_get_selection(struct v4l2_subdev *sd, | |||
1949 | return -EINVAL; | 1949 | return -EINVAL; |
1950 | 1950 | ||
1951 | switch (sel->target) { | 1951 | switch (sel->target) { |
1952 | case V4L2_SUBDEV_SEL_TGT_CROP_BOUNDS: | 1952 | case V4L2_SEL_TGT_CROP_BOUNDS: |
1953 | sel->r.left = 0; | 1953 | sel->r.left = 0; |
1954 | sel->r.top = 0; | 1954 | sel->r.top = 0; |
1955 | sel->r.width = INT_MAX; | 1955 | sel->r.width = INT_MAX; |
@@ -1960,7 +1960,7 @@ static int preview_get_selection(struct v4l2_subdev *sd, | |||
1960 | preview_try_crop(prev, format, &sel->r); | 1960 | preview_try_crop(prev, format, &sel->r); |
1961 | break; | 1961 | break; |
1962 | 1962 | ||
1963 | case V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL: | 1963 | case V4L2_SEL_TGT_CROP: |
1964 | sel->r = *__preview_get_crop(prev, fh, sel->which); | 1964 | sel->r = *__preview_get_crop(prev, fh, sel->which); |
1965 | break; | 1965 | break; |
1966 | 1966 | ||
@@ -1988,7 +1988,7 @@ static int preview_set_selection(struct v4l2_subdev *sd, | |||
1988 | struct isp_prev_device *prev = v4l2_get_subdevdata(sd); | 1988 | struct isp_prev_device *prev = v4l2_get_subdevdata(sd); |
1989 | struct v4l2_mbus_framefmt *format; | 1989 | struct v4l2_mbus_framefmt *format; |
1990 | 1990 | ||
1991 | if (sel->target != V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL || | 1991 | if (sel->target != V4L2_SEL_TGT_CROP || |
1992 | sel->pad != PREV_PAD_SINK) | 1992 | sel->pad != PREV_PAD_SINK) |
1993 | return -EINVAL; | 1993 | return -EINVAL; |
1994 | 1994 | ||
@@ -2000,7 +2000,7 @@ static int preview_set_selection(struct v4l2_subdev *sd, | |||
2000 | * pad. If the KEEP_CONFIG flag is set, just return the current crop | 2000 | * pad. If the KEEP_CONFIG flag is set, just return the current crop |
2001 | * rectangle. | 2001 | * rectangle. |
2002 | */ | 2002 | */ |
2003 | if (sel->flags & V4L2_SUBDEV_SEL_FLAG_KEEP_CONFIG) { | 2003 | if (sel->flags & V4L2_SEL_FLAG_KEEP_CONFIG) { |
2004 | sel->r = *__preview_get_crop(prev, fh, sel->which); | 2004 | sel->r = *__preview_get_crop(prev, fh, sel->which); |
2005 | return 0; | 2005 | return 0; |
2006 | } | 2006 | } |