Received: by 2002:ab2:61d1:0:b0:1f7:886a:16b6 with SMTP id d17csp1890436lqm; Fri, 3 May 2024 11:16:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCBHf7jl9u4heWF+4S+Otgb/jHM6RBs0X1V3+B9izyFLX9/GfaN+PdL55Nosy9I3DNfwX1xjGUGgeFnvJDDrOlfBefXAY3hC/oRusC7g== X-Google-Smtp-Source: AGHT+IHBF7e6pkqh0ddpTqb8/Ot/Hty/uLX96OIgRY86XD7AQKYTX61irzx+oQqCxGGUGLbr0Xzm X-Received: by 2002:a50:8d1b:0:b0:572:3b15:a40 with SMTP id s27-20020a508d1b000000b005723b150a40mr2205062eds.33.1714760200180; Fri, 03 May 2024 11:16:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714760200; cv=pass; d=google.com; s=arc-20160816; b=NZ6ZQVAGvnrjEiYj4Dgm/8PMlSH7SvF9RGFCBr/T9xRfps06EqAxctpExMTdS1Jaqg tXBgdTdk/KAKhUY8OEPmYuCTFeK5aGLhD/sDtyzpcPbucvk6vZf3jMwxGTJvr4UjJNkv xNMb0w/x3PA5Zk+mE5lmTFoz2fmX0Ot8KFXTTH5Hd2NstXHsJASTKUNDES/SUM2R//xx nYcyGWa15pooET7ozSd5b7Lu+43azbyBsrbuaMqLdMYDmb7/mDYDlcKzR+KsXaZpKu14 /oBreAEGBgXPo/uRUYikPjoDTSvmyr83rCQMsqn8Dfwv+3+7EwxBpUuwi8tVFuRalaBt cV2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-filter; bh=/A3R6LdZJrExpiEpXl1oiDkbBSQmYdztPra//mlDMZw=; fh=40w499jgcLQ4Bg/stpPfyyC5HnUP8dNfA1iXtgqGv84=; b=BTeQHy1iVJyE6XDNppLTNWQH4qz0hfj9ugtWUSCRwBRD0X8KPaPDqb+sNKQM5scCKs 8eOh3GTTgM0RGqY7i1N/vffPPLVeo/8gOBqjPfPAllRzDgCTWYGRwFtG/+dRfpTO1Slm iIwChEziU4gpC2WFQ3xGlVFEPu6cxMqes3c/W5vs/Ln0B/tnN2MnJtSPZOrfQUYC4hSW XjsT0/ckP4J0v6RnlBr7NoNSZCzrxxeEA5+pYhlArmHefhU8/12i/w6fDilHw8CsdaTj eBmc1cwf4rO1btdMAvYDSGB/wVP+vzDJ/F2alwwCPkuBZsDbGyRQatCf/IXnvEl43UDP LhzA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=YZAHRyiJ; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-168019-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168019-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w12-20020a056402268c00b00572a1672fa6si1931036edd.82.2024.05.03.11.16.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 11:16:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168019-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=YZAHRyiJ; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-168019-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168019-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DCE1D1F234AB for ; Fri, 3 May 2024 18:16:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BE90158DCC; Fri, 3 May 2024 18:15:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="YZAHRyiJ" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 55835158D82; Fri, 3 May 2024 18:15:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714760113; cv=none; b=B1fPew9eJidH9p+VdBokxYxURFmLvHY0E3F9l1h3EkWdMaUDFUBVt9LrLZ8thNfaqOIQ0kvkFAfeIj9hnSWN3VX+ZXUXt1uaNmwLOJ+zn+DvsX46q+0NxtV7XTbq3WjgQls/cS/OdYo+jxzBkElR4F/uZD5AL0qTT2Qv6g8qFJ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714760113; c=relaxed/simple; bh=HSEFERrpe5SM0/EFdJ6xJv9YcthOL0BO/J1La9e3n4Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=syZ0DJdXY9q1gH/LDm8Kf009YC89OZXt2xEcib7veMg7Hknm96zaTiovenOhL7wA9wuuPDa6ddoN7UxDOeNo92hT0QX+9Hf/fGn6qGcwL5xP1ieLtc9WOx9trZAibG62RvRenWUdjx1WUZGB5KbjwR+RL11Q+B6qhI8iIedG5EM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=YZAHRyiJ; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: from rrs24-12-35.corp.microsoft.com (unknown [131.107.8.16]) by linux.microsoft.com (Postfix) with ESMTPSA id D81E2207DBCB; Fri, 3 May 2024 11:15:11 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D81E2207DBCB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1714760111; bh=/A3R6LdZJrExpiEpXl1oiDkbBSQmYdztPra//mlDMZw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YZAHRyiJJtKvQIbmQAkEONQGyns54fi6WNNS24AW8WyJNJEmZbe/SKAYgl5kBiSfI lARvpAUaEoE0f10tzgZXfeoW9QsoBn8BBV43otedvIY/biLfCmlKVSq1rV9hPx/XfL 89Cf41VoERmXkm1v46ABdX3qlm7jYVqgnmeREf5k= From: Easwar Hariharan To: Mauro Carvalho Chehab , Easwar Hariharan , linux-media@vger.kernel.org (open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB)), linux-kernel@vger.kernel.org (open list) Cc: Wolfram Sang , amd-gfx@lists.freedesktop.org (open list:RADEON and AMDGPU DRM DRIVERS), dri-devel@lists.freedesktop.org (open list:DRM DRIVERS), linux-kernel@vger.kernel.org (open list), intel-gfx@lists.freedesktop.org (open list:INTEL DRM DISPLAY FOR XE AND I915 DRIVERS), intel-xe@lists.freedesktop.org (open list:INTEL DRM DISPLAY FOR XE AND I915 DRIVERS), nouveau@lists.freedesktop.org (open list:DRM DRIVER FOR NVIDIA GEFORCE/QUADRO GPUS), linux-i2c@vger.kernel.org (open list:I2C SUBSYSTEM HOST DRIVERS), linux-media@vger.kernel.org (open list:BTTV VIDEO4LINUX DRIVER), linux-fbdev@vger.kernel.org (open list:FRAMEBUFFER LAYER) Subject: [PATCH v2 04/12] media: au0828: Make I2C terminology more inclusive Date: Fri, 3 May 2024 18:13:25 +0000 Message-Id: <20240503181333.2336999-5-eahariha@linux.microsoft.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240503181333.2336999-1-eahariha@linux.microsoft.com> References: <20240503181333.2336999-1-eahariha@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit I2C v7, SMBus 3.2, and I3C 1.1.1 specifications have replaced "master/slave" with more appropriate terms. Inspired by and following on to Wolfram's series to fix drivers/i2c/[1], fix the terminology for users of I2C_ALGOBIT bitbanging interface, now that the approved verbiage exists in the specification. Compile tested, no functionality changes intended [1]: https://lore.kernel.org/all/20240322132619.6389-1-wsa+renesas@sang-engineering.com/ Signed-off-by: Easwar Hariharan --- drivers/media/usb/au0828/au0828-i2c.c | 4 ++-- drivers/media/usb/au0828/au0828-input.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/usb/au0828/au0828-i2c.c b/drivers/media/usb/au0828/au0828-i2c.c index 749f90d73b5b..743cb44f52aa 100644 --- a/drivers/media/usb/au0828/au0828-i2c.c +++ b/drivers/media/usb/au0828/au0828-i2c.c @@ -23,7 +23,7 @@ MODULE_PARM_DESC(i2c_scan, "scan i2c bus at insmod time"); #define I2C_WAIT_DELAY 25 #define I2C_WAIT_RETRY 1000 -static inline int i2c_slave_did_read_ack(struct i2c_adapter *i2c_adap) +static inline int i2c_target_did_read_ack(struct i2c_adapter *i2c_adap) { struct au0828_dev *dev = i2c_adap->algo_data; return au0828_read(dev, AU0828_I2C_STATUS_201) & @@ -35,7 +35,7 @@ static int i2c_wait_read_ack(struct i2c_adapter *i2c_adap) int count; for (count = 0; count < I2C_WAIT_RETRY; count++) { - if (!i2c_slave_did_read_ack(i2c_adap)) + if (!i2c_target_did_read_ack(i2c_adap)) break; udelay(I2C_WAIT_DELAY); } diff --git a/drivers/media/usb/au0828/au0828-input.c b/drivers/media/usb/au0828/au0828-input.c index 3d3368202cd0..6c9e5ea795f2 100644 --- a/drivers/media/usb/au0828/au0828-input.c +++ b/drivers/media/usb/au0828/au0828-input.c @@ -30,7 +30,7 @@ struct au0828_rc { int polling; struct delayed_work work; - /* i2c slave address of external device (if used) */ + /* i2c target address of external device (if used) */ u16 i2c_dev_addr; int (*get_key_i2c)(struct au0828_rc *ir); -- 2.34.1