Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp34805ybl; Tue, 20 Aug 2019 15:08:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzktS0Jsw1FtACNbFQm4WYRWjdxp6Xza2dE8p38jVutyHlFgSNUmuJ0YpOpOuQJ64HJHa/9 X-Received: by 2002:a17:902:2b8a:: with SMTP id l10mr30609201plb.283.1566338901073; Tue, 20 Aug 2019 15:08:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566338901; cv=none; d=google.com; s=arc-20160816; b=U+07kcuoqbK/sZTi04Xq95rjeKv4b1ppzUYmGm7IXJRHbkHTDWGGSGQCUlkzgojnJ2 Zv1ZVF4tmHCU1Lsx6Rif9USLNsD71mtgwVZfxvREqOgmf3ziRKUsWugCHjG1Cmgi78Ct JLhtO8uWad9cbhF6qu31AXv1CEPN1lFV7viP2VFr36awz2pj0doUA4LJZLyMKTXAdINc oKqpLDflpDbU3hOzRZ2sSQkGvE90xGKl7YwgRQjZkByl0JeM1OV7Ao7f3uJ8TeUhYfGh SzKXpYGpITlaqG7/K3m0SUgl6ez0KjIWFDOF1DmPTxj3JV8KiBuZ1G6GVhF+YImSvQRf PPXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=qFXQMT9meKEmKo7bNEPg6SyocRxo8XwsmMZDiXQeRdQ=; b=GPTFLvhCTzmDI9CZhWTo7KOSgZWt2aKerOg4AR6LL/Qwc//bLAMCCxjIPFvLggmZrS Q0sRtFDrGMKU2YvjyM5/WRct6nWIRvggsK8TPPNOst3XVwYHPh2ozCBBwF7EMDWyBErt 0OSxGOIbXVHHg6B/hYqWs4QsZGE9xLADoR7drqi7tqvOZgcgtx2dEMEXhd3B1abztBcK UKhZSuaVt/fMZP3myVExOs6Ej8FWmzhvf6ixf7kI9UXGnhjYbGnX2YgUfpt+v9xyzYqB TSv4jgNxS9eeSzIKendwnfd7WFHUdAzkIDF1M/EsStNygCVi/Y+rlgZTpC+GRHgNZhsD MYOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k96si830378pje.97.2019.08.20.15.08.02; Tue, 20 Aug 2019 15:08:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730910AbfHTWGM (ORCPT + 99 others); Tue, 20 Aug 2019 18:06:12 -0400 Received: from vps-vb.mhejs.net ([37.28.154.113]:58448 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730092AbfHTWGM (ORCPT ); Tue, 20 Aug 2019 18:06:12 -0400 Received: from MUA by vps-vb.mhejs.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1i0CGV-00075O-SZ; Wed, 21 Aug 2019 00:06:07 +0200 From: "Maciej S. Szmigiero" To: Mauro Carvalho Chehab Cc: Matthias Schwarzott , linux-kernel , linux-media@vger.kernel.org Subject: [PATCH] media: saa7134: fix terminology around saa7134_i2c_eeprom_md7134_gate() Date: Wed, 21 Aug 2019 00:05:55 +0200 Message-Id: <20190820220555.883092-2-mail@maciej.szmigiero.name> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org saa7134_i2c_eeprom_md7134_gate() function and the associated comment uses an inverted i2c gate open / closed terminology. Let's fix this. Signed-off-by: Maciej S. Szmigiero --- drivers/media/pci/saa7134/saa7134-i2c.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/media/pci/saa7134/saa7134-i2c.c b/drivers/media/pci/saa7134/saa7134-i2c.c index 493b1858815f..1414d580c98f 100644 --- a/drivers/media/pci/saa7134/saa7134-i2c.c +++ b/drivers/media/pci/saa7134/saa7134-i2c.c @@ -342,7 +342,11 @@ static const struct i2c_client saa7134_client_template = { /* ----------------------------------------------------------- */ -/* On Medion 7134 reading EEPROM needs DVB-T demod i2c gate open */ +/* + * On Medion 7134 reading the SAA7134 chip config EEPROM needs DVB-T + * demod i2c gate closed due to an address clash between this EEPROM + * and the demod one. + */ static void saa7134_i2c_eeprom_md7134_gate(struct saa7134_dev *dev) { u8 subaddr = 0x7, dmdregval; @@ -359,13 +363,13 @@ static void saa7134_i2c_eeprom_md7134_gate(struct saa7134_dev *dev) ret = i2c_transfer(&dev->i2c_adap, i2cgatemsg_r, 2); if ((ret == 2) && (dmdregval & 0x2)) { - pr_debug("%s: DVB-T demod i2c gate was left closed\n", + pr_debug("%s: DVB-T demod i2c gate was left open\n", dev->name); data[0] = subaddr; data[1] = (dmdregval & ~0x2); if (i2c_transfer(&dev->i2c_adap, i2cgatemsg_w, 1) != 1) - pr_err("%s: EEPROM i2c gate open failure\n", + pr_err("%s: EEPROM i2c gate close failure\n", dev->name); } }