diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2015-05-04 13:25:48 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-04-15 04:28:34 +0300 |
commit | 1d3d64370e0894ee9816d0c3b385a41044921b3f (patch) | |
tree | b91334931242820cda9a70f908a9204539f9394a /drivers/media/i2c/soc_camera | |
parent | 3a2824c72ab5d9b2b93d49461f09d5ae342d994c (diff) | |
download | linux-1d3d64370e0894ee9816d0c3b385a41044921b3f.tar.xz |
[media] imx074: avoid calling imx074_find_datafmt() twice
Simplify imx074_set_fmt().
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/i2c/soc_camera')
-rw-r--r-- | drivers/media/i2c/soc_camera/imx074.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/soc_camera/imx074.c b/drivers/media/i2c/soc_camera/imx074.c index 9b0f0d03dffd..77f1e0243d6e 100644 --- a/drivers/media/i2c/soc_camera/imx074.c +++ b/drivers/media/i2c/soc_camera/imx074.c @@ -180,7 +180,7 @@ static int imx074_set_fmt(struct v4l2_subdev *sd, mf->field = V4L2_FIELD_NONE; if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE) - priv->fmt = imx074_find_datafmt(mf->code); + priv->fmt = fmt; else cfg->try_fmt = *mf; |