From patchwork Mon Feb 22 16:21:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Ringel X-Patchwork-Id: 81181 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1MGMWoh003287 for ; Mon, 22 Feb 2010 16:22:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753987Ab0BVQWc (ORCPT ); Mon, 22 Feb 2010 11:22:32 -0500 Received: from mail-in-06.arcor-online.net ([151.189.21.46]:40939 "EHLO mail-in-06.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753802Ab0BVQWY (ORCPT ); Mon, 22 Feb 2010 11:22:24 -0500 Received: from mail-in-08-z2.arcor-online.net (mail-in-08-z2.arcor-online.net [151.189.8.20]) by mx.arcor.de (Postfix) with ESMTP id B689139A772; Mon, 22 Feb 2010 17:22:22 +0100 (CET) Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mail-in-08-z2.arcor-online.net (Postfix) with ESMTP id C9780213012; Mon, 22 Feb 2010 17:22:22 +0100 (CET) Received: from localhost.localdomain (dslb-188-103-172-103.pools.arcor-ip.net [188.103.172.103]) (Authenticated sender: stefan.ringel@arcor.de) by mail-in-06.arcor-online.net (Postfix) with ESMTPA id 1448E39A938; Mon, 22 Feb 2010 17:22:22 +0100 (CET) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-06.arcor-online.net 1448E39A938 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1266855742; bh=bj9tU7vap8XngW4XOeESnmk/Rg7V809WPhKg8xZDw6A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=mJg8/UpvLk3jHeWKM/2OFnYn7OtHvDf5CK0c7zgt56Agim2MYUbP25/7NFG0YL5QC aDCo8LfZjWDkwSAFpNjtdcnaQiO4a1hrC6wCVfCcCTCCbm1nz6irNCS9gBdl4dwY2h yjwewKDCu27pNHL+iqet4o4bQaTKS5SaBwlouBds= From: stefan.ringel@arcor.de To: linux-media@vger.kernel.org Cc: mchehab@redhat.com, dheitmueller@kernellabs.com, Stefan Ringel Subject: [PATCH 3/3] tm6000: bugfix i2c addr Date: Mon, 22 Feb 2010 17:21:33 +0100 Message-Id: <1266855693-5554-3-git-send-email-stefan.ringel@arcor.de> X-Mailer: git-send-email 1.6.6.1 In-Reply-To: <1266855693-5554-2-git-send-email-stefan.ringel@arcor.de> References: <1266855693-5554-1-git-send-email-stefan.ringel@arcor.de> <1266855693-5554-2-git-send-email-stefan.ringel@arcor.de> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 22 Feb 2010 16:22:34 +0000 (UTC) diff --git a/drivers/staging/tm6000/tm6000-i2c.c b/drivers/staging/tm6000/tm6000-i2c.c index 89297b0..b261094 100644 --- a/drivers/staging/tm6000/tm6000-i2c.c +++ b/drivers/staging/tm6000/tm6000-i2c.c @@ -125,7 +125,7 @@ static int tm6000_i2c_xfer(struct i2c_adapter *i2c_adap, i++; - if (addr == dev->tuner_addr) { + if (addr == dev->tuner_addr << 1) { tm6000_set_reg(dev, 0x32, 0,0); tm6000_set_reg(dev, 0x33, 0,0); } @@ -140,7 +140,7 @@ static int tm6000_i2c_xfer(struct i2c_adapter *i2c_adap, rc = tm6000_i2c_send_regs(dev, addr, msgs[i].buf[0], msgs[i].buf + 1, msgs[i].len - 1); - if (addr == dev->tuner_addr) { + if (addr == dev->tuner_addr << 1) { tm6000_set_reg(dev, 0x32, 0,0); tm6000_set_reg(dev, 0x33, 0,0); }