[media] fc0011: Reduce number of retries
authorMichael Büsch <m@bues.ch>
Tue, 3 Apr 2012 08:05:03 +0000 (05:05 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 9 Apr 2012 17:54:11 +0000 (14:54 -0300)
Now that i2c transfers are fixed, 3 retries are enough.

Signed-off-by: Michael Buesch <m@bues.ch>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/fc0011.c

index d43a5a29ed293d866baaf7b5f309f309c4194e94..e4882546c2839cedaf484e4d05709f3115d79725 100644 (file)
@@ -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);