提交 7dee1030 编写于 作者: K Krzysztof Hałasa 提交者: Mauro Carvalho Chehab

media: TDA1997x: fix tda1997x_query_dv_timings() return value

Correctly propagate the tda1997x_detect_std error value.
Signed-off-by: NKrzysztof Hałasa <khalasa@piap.pl>
Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org>
上级 95d45366
......@@ -1695,14 +1695,15 @@ static int tda1997x_query_dv_timings(struct v4l2_subdev *sd,
struct v4l2_dv_timings *timings)
{
struct tda1997x_state *state = to_state(sd);
int ret;
v4l_dbg(1, debug, state->client, "%s\n", __func__);
memset(timings, 0, sizeof(struct v4l2_dv_timings));
mutex_lock(&state->lock);
tda1997x_detect_std(state, timings);
ret = tda1997x_detect_std(state, timings);
mutex_unlock(&state->lock);
return 0;
return ret;
}
static const struct v4l2_subdev_video_ops tda1997x_video_ops = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册