From patchwork Mon Feb 15 17:37:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Ringel X-Patchwork-Id: 79437 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 o1FHcP7G013091 for ; Mon, 15 Feb 2010 17:38:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755897Ab0BORiX (ORCPT ); Mon, 15 Feb 2010 12:38:23 -0500 Received: from mail-in-12.arcor-online.net ([151.189.21.52]:56585 "EHLO mail-in-12.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755890Ab0BORiU (ORCPT ); Mon, 15 Feb 2010 12:38:20 -0500 Received: from mail-in-15-z2.arcor-online.net (mail-in-15-z2.arcor-online.net [151.189.8.32]) by mx.arcor.de (Postfix) with ESMTP id D22D51B3BA8; Mon, 15 Feb 2010 18:38:18 +0100 (CET) Received: from mail-in-14.arcor-online.net (mail-in-14.arcor-online.net [151.189.21.54]) by mail-in-15-z2.arcor-online.net (Postfix) with ESMTP id 8C0EF724445; Mon, 15 Feb 2010 18:38:18 +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-14.arcor-online.net (Postfix) with ESMTPA id 0D12E28B0CD; Mon, 15 Feb 2010 18:38:17 +0100 (CET) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-14.arcor-online.net 0D12E28B0CD DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1266255498; bh=fBPyinXDpQug5dZ/voM5+oUShwzlTzl8uQuFL7D8Guo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=c6S+yZPc3NYMaeMrQbmwY/Xgmo+UsK3ykZLsT9qsPkMJN7fBS2xE/kI2v3y9+cR8L SlMVJOTgBrCMbjX/RAD08GAuaM8OKNxeZ4w+V6CpldAUJn01QXNOXRVsjGNaqpCw1g sdvbpvDuwFJ3LP47KY716HS8nxs9N2KLEzsr45Bk= From: stefan.ringel@arcor.de To: linux-media@vger.kernel.org Cc: mchehab@redhat.com, dheitmueller@kernellabs.com, Stefan Ringel Subject: [PATCH 08/11] tm6000: special request for all tuner Date: Mon, 15 Feb 2010 18:37:21 +0100 Message-Id: <1266255444-7422-8-git-send-email-stefan.ringel@arcor.de> X-Mailer: git-send-email 1.6.6.1 In-Reply-To: <1266255444-7422-7-git-send-email-stefan.ringel@arcor.de> References: <1266255444-7422-1-git-send-email-stefan.ringel@arcor.de> <1266255444-7422-2-git-send-email-stefan.ringel@arcor.de> <1266255444-7422-3-git-send-email-stefan.ringel@arcor.de> <1266255444-7422-4-git-send-email-stefan.ringel@arcor.de> <1266255444-7422-5-git-send-email-stefan.ringel@arcor.de> <1266255444-7422-6-git-send-email-stefan.ringel@arcor.de> <1266255444-7422-7-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, 15 Feb 2010 17:38:25 +0000 (UTC) diff --git a/drivers/staging/tm6000/tm6000-i2c.c b/drivers/staging/tm6000/tm6000-i2c.c index 9d02674..ef11d48 100644 --- a/drivers/staging/tm6000/tm6000-i2c.c +++ b/drivers/staging/tm6000/tm6000-i2c.c @@ -112,7 +112,7 @@ static int tm6000_i2c_xfer(struct i2c_adapter *i2c_adap, } i++; - if ((dev->dev_type == TM6010) && (addr == 0xc2)) { + if (addr == dev->tuner_addr) { tm6000_set_reg(dev, 0x32, 0,0); tm6000_set_reg(dev, 0x33, 0,0); } @@ -128,7 +128,7 @@ static int tm6000_i2c_xfer(struct i2c_adapter *i2c_adap, rc = tm6000_i2c_send_byte(dev, addr, msgs[i].buf[0], msgs[i].buf + 1, msgs[i].len - 1); - if ((dev->dev_type == TM6010) && (addr == 0xc2)) { + if (addr == dev->tuner_addr) { tm6000_set_reg(dev, 0x32, 0,0); tm6000_set_reg(dev, 0x33, 0,0); }