From patchwork Wed Feb 11 09:34:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roel Kluin X-Patchwork-Id: 6645 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n1B9YDgY019022 for ; Wed, 11 Feb 2009 09:34:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753890AbZBKJeM (ORCPT ); Wed, 11 Feb 2009 04:34:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752827AbZBKJeM (ORCPT ); Wed, 11 Feb 2009 04:34:12 -0500 Received: from mail-ew0-f21.google.com ([209.85.219.21]:56189 "EHLO mail-ew0-f21.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753890AbZBKJeL (ORCPT ); Wed, 11 Feb 2009 04:34:11 -0500 Received: by ewy14 with SMTP id 14so80049ewy.13 for ; Wed, 11 Feb 2009 01:34:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=YGfydrMeMYvc5E9h52cBqX3x/YHS4GEo7qr5QPWkga4=; b=uNLQVYUIx6NNZV1qnUyt/vUyTXk/A5AAYJ7QsVeGwuV2eV/dnNeIY2fp3li33BfCS7 g/mGUS8tzak6m4j/Y4u6o0A4io0qmhTyO+jLHV2FeaJlJOcbNe5giek8aSGEZ2nh107i QVNXGTY+RFEiJeWFKt+bKrh1QCHOaPIYJHpjE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=s4SZTBCmerDdabs6/xuCMA7jqShkzfXcSHOOml5dOjsReahBU+p6sV6/sdtR0135dJ d5OBE9e0Khq9XPpN8wKOC1WMrbxG5QRYFS8+Eu8uAIYCHD3YXbzlHI155aJgsxwe8SPr cUiyjBctbrdNkHDkToUANc2Na1zjoRKbsQRgA= Received: by 10.210.39.8 with SMTP id m8mr5600982ebm.40.1234344848698; Wed, 11 Feb 2009 01:34:08 -0800 (PST) Received: from ?192.168.1.115? (d133062.upc-d.chello.nl [213.46.133.62]) by mx.google.com with ESMTPS id f6sm914726nfh.40.2009.02.11.01.34.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 11 Feb 2009 01:34:08 -0800 (PST) Message-ID: <49929B93.8010702@gmail.com> Date: Wed, 11 Feb 2009 10:34:11 +0100 From: Roel Kluin User-Agent: Thunderbird 2.0.0.18 (X11/20081105) MIME-Version: 1.0 To: mchehab@redhat.com CC: Andrew Morton , linux-media@vger.kernel.org Subject: [PATCH] V4L/DVB: calibration still successful at 10 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org With while (i++ < 10) { ... } i can reach 11, so callibration still succeeds at i == 10. Signed-off-by: Roel Kluin --- -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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