From: Mats Randgaard Date: Thu, 12 Dec 2013 13:13:35 +0000 (-0300) Subject: [media] adv7604: return immediately if the new timings are equal to what is configured X-Git-Tag: v3.14-rc1~20^2~159 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=d48eb48cd4d497e2e65c68d3ca3976a8dbfc992e;p=linux-2.6-block.git [media] adv7604: return immediately if the new timings are equal to what is configured Signed-off-by: Mats Randgaard Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index 912c59ec22b1..0bc9e1a8c07e 100644 --- a/drivers/media/i2c/adv7604.c +++ b/drivers/media/i2c/adv7604.c @@ -1423,6 +1423,11 @@ static int adv7604_s_dv_timings(struct v4l2_subdev *sd, if (!timings) return -EINVAL; + if (v4l2_match_dv_timings(&state->timings, timings, 0)) { + v4l2_dbg(1, debug, sd, "%s: no change\n", __func__); + return 0; + } + bt = &timings->bt; if ((is_analog_input(sd) && bt->pixelclock > 170000000) ||