diff options
author | Sakari Ailus | 2018-09-24 16:38:11 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2018-10-03 17:58:24 +0200 |
commit | af8e15620efdfe335a7cf9c0a4d8bd89c2402e2b (patch) | |
tree | 37b104fa26d830bfac0d9db329cd480d9807cf9e /drivers/staging | |
parent | media: v4l: i2c: Add a comment not to use static sub-device names in the future (diff) | |
download | kernel-qcow2-linux-af8e15620efdfe335a7cf9c0a4d8bd89c2402e2b.tar.gz kernel-qcow2-linux-af8e15620efdfe335a7cf9c0a4d8bd89c2402e2b.tar.xz kernel-qcow2-linux-af8e15620efdfe335a7cf9c0a4d8bd89c2402e2b.zip |
media: v4l: Remove support for crop default target in subdev drivers
The V4L2 sub-device API does not support the crop default target. A number
of drivers apparently still did support this, likely as it was needed by
the SoC camera framework. Drop support for the default crop rectaingle in
sub-device drivers, and use the bounds rectangle in SoC camera instead.
Reported-by: Helmut Grohne <h.grohne@intenta.de>
Suggested-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/media/imx074/imx074.c | 1 | ||||
-rw-r--r-- | drivers/staging/media/mt9t031/mt9t031.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/media/imx074/imx074.c b/drivers/staging/media/imx074/imx074.c index 77f1e0243d6e..c5256903e59f 100644 --- a/drivers/staging/media/imx074/imx074.c +++ b/drivers/staging/media/imx074/imx074.c @@ -223,7 +223,6 @@ static int imx074_get_selection(struct v4l2_subdev *sd, switch (sel->target) { case V4L2_SEL_TGT_CROP_BOUNDS: - case V4L2_SEL_TGT_CROP_DEFAULT: case V4L2_SEL_TGT_CROP: return 0; default: diff --git a/drivers/staging/media/mt9t031/mt9t031.c b/drivers/staging/media/mt9t031/mt9t031.c index 4802d30e47de..4ff179302b4f 100644 --- a/drivers/staging/media/mt9t031/mt9t031.c +++ b/drivers/staging/media/mt9t031/mt9t031.c @@ -330,7 +330,6 @@ static int mt9t031_get_selection(struct v4l2_subdev *sd, switch (sel->target) { case V4L2_SEL_TGT_CROP_BOUNDS: - case V4L2_SEL_TGT_CROP_DEFAULT: sel->r.left = MT9T031_COLUMN_SKIP; sel->r.top = MT9T031_ROW_SKIP; sel->r.width = MT9T031_MAX_WIDTH; |