Skip to content

Commit

Permalink
[media] fc0011: Reduce number of retries
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Büsch authored and Mauro Carvalho Chehab committed Apr 9, 2012
1 parent de2bec5 commit a182fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/common/tuners/fc0011.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a182fd8

Please sign in to comment.