summaryrefslogtreecommitdiff
path: root/drivers/media/common
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-02-11 09:34:11 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 15:42:49 (GMT)
commit7d979a86a95036a0c765aaa90f8bcefb4096a406 (patch)
tree967789989bb58d7a3cfe8c54af11075d8daecc97 /drivers/media/common
parent320a46485c83e70e374afa8bdfe8cd39a801cd5d (diff)
downloadlinux-fsl-qoriq-7d979a86a95036a0c765aaa90f8bcefb4096a406.tar.xz
V4L/DVB: calibration still successful at 10
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>
Diffstat (limited to 'drivers/media/common')
-rw-r--r--drivers/media/common/tuners/mt2060.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/mt2060.c b/drivers/media/common/tuners/mt2060.c
index 12206d7..c7abe3d 100644
--- a/drivers/media/common/tuners/mt2060.c
+++ b/drivers/media/common/tuners/mt2060.c
@@ -278,7 +278,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