提交 1d3d6437 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[media] imx074: avoid calling imx074_find_datafmt() twice

Simplify imx074_set_fmt().
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Reported-by: NGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 3a2824c7
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册