Skip to content

Commit 7dee103

Browse files
Krzysztof Hałasamchehab
authored andcommitted
media: TDA1997x: fix tda1997x_query_dv_timings() return value
Correctly propagate the tda1997x_detect_std error value. Signed-off-by: Krzysztof Hałasa <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 95d4536 commit 7dee103

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/media/i2c/tda1997x.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1695,14 +1695,15 @@ static int tda1997x_query_dv_timings(struct v4l2_subdev *sd,
16951695
struct v4l2_dv_timings *timings)
16961696
{
16971697
struct tda1997x_state *state = to_state(sd);
1698+
int ret;
16981699

16991700
v4l_dbg(1, debug, state->client, "%s\n", __func__);
17001701
memset(timings, 0, sizeof(struct v4l2_dv_timings));
17011702
mutex_lock(&state->lock);
1702-
tda1997x_detect_std(state, timings);
1703+
ret = tda1997x_detect_std(state, timings);
17031704
mutex_unlock(&state->lock);
17041705

1705-
return 0;
1706+
return ret;
17061707
}
17071708

17081709
static const struct v4l2_subdev_video_ops tda1997x_video_ops = {

0 commit comments

Comments
 (0)