From a182fd8f7953be661f9c36c0f6436905d08395d3 Mon Sep 17 00:00:00 2001 From: Michael Büsch Date: Tue, 3 Apr 2012 05:05:03 -0300 Subject: [media] fc0011: Reduce number of retries Now that i2c transfers are fixed, 3 retries are enough. Signed-off-by: Michael Buesch Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- drivers/media/common/tuners/fc0011.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/media/common/tuners/fc0011.c b/drivers/media/common/tuners/fc0011.c index d43a5a29ed29..e4882546c283 100644 --- a/drivers/media/common/tuners/fc0011.c +++ b/drivers/media/common/tuners/fc0011.c @@ -314,7 +314,7 @@ static int fc0011_set_params(struct dvb_frontend *fe) if (err) return err; vco_retries = 0; - while (!(vco_cal & FC11_VCOCAL_OK) && vco_retries < 6) { + while (!(vco_cal & FC11_VCOCAL_OK) && vco_retries < 3) { /* Reset the tuner and try again */ err = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER, FC0011_FE_CALLBACK_RESET, priv->addr); -- cgit v1.2.3