From: Hans Verkuil <hans.verk...@cisco.com>

Simplify imx074_set_fmt().

Signed-off-by: Hans Verkuil <hans.verk...@cisco.com>
Reported-by: Guennadi Liakhovetski <g.liakhovet...@gmx.de>
---
 drivers/media/i2c/soc_camera/imx074.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/i2c/soc_camera/imx074.c 
b/drivers/media/i2c/soc_camera/imx074.c
index f68c235..dabfa3f 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;
 
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to