diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-02-11 09:34:11 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-02-11 09:34:11 +0000 |
commit | de8d080a697cf4a8c8c997f7f3b76ea1f49a51bd (patch) | |
tree | bf1285254e54ce875a67e27f821be768c1bd5443 | |
parent | ae420af84b9a311c94b8c41557e700a13fe2f520 (diff) | |
download | mediapointer-dvb-s2-de8d080a697cf4a8c8c997f7f3b76ea1f49a51bd.tar.gz mediapointer-dvb-s2-de8d080a697cf4a8c8c997f7f3b76ea1f49a51bd.tar.bz2 |
V4L/DVB: calibration still successful at 10
From: Roel Kluin <roel.kluin@gmail.com>
With while (i++ < 10) { ... } i can reach 11, so callibration still
succeeds at i == 10.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | linux/drivers/media/common/tuners/mt2060.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/common/tuners/mt2060.c b/linux/drivers/media/common/tuners/mt2060.c index d1962bb24..1f1fe90cb 100644 --- a/linux/drivers/media/common/tuners/mt2060.c +++ b/linux/drivers/media/common/tuners/mt2060.c @@ -285,7 +285,7 @@ static void mt2060_calibrate(struct mt2060_priv *priv) while (i++ < 10 && mt2060_readreg(priv, REG_MISC_STAT, &b) == 0 && (b & (1 << 6)) == 0) msleep(20); - if (i < 10) { + if (i <= 10) { mt2060_readreg(priv, REG_FM_FREQ, &priv->fmfreq); // now find out, what is fmreq used for :) dprintk("calibration was successful: %d", (int)priv->fmfreq); } else |