Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1129590lqp; Fri, 22 Mar 2024 06:32:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3/uvtI/qhEkE7HDGPf/HNTZUR/qPF0jbKZCpc8B3WNVcxuiU05OHnZLD3K+J7PpyGLYByRlKZW3RTLS3mwg2c3+207R3wf9M5lwreMQ== X-Google-Smtp-Source: AGHT+IFM9q0Ss9aqyzdGWL/YXZbk86+fYw8RnGgrsIkh9FurcQeCiMOPz+FcZ2YrmW46K5q9Jmon X-Received: by 2002:a67:fc84:0:b0:476:a868:f7b6 with SMTP id x4-20020a67fc84000000b00476a868f7b6mr2729221vsp.15.1711114372031; Fri, 22 Mar 2024 06:32:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711114372; cv=pass; d=google.com; s=arc-20160816; b=Q1uCHjemppiXsP0ECo4iiZ7iPLqNz8T2Z0g7eIJYqATSwXKjoKbbHjJGFszOPyIILQ /BKUlLY2otku4DIlLS7q7+VSicwCtolCzJPG7jbMa8Ukzev3MS5+6TI56PepSZoJJvMB And77oG99uz7NPYZF7ZRcl9H41rWZ+LJxnrOjqAeFSwJ/NXqUv5hL7Ps99pl5W9581CA MEnHoyrSaj3MIf1+dG6XvNBxMrwsWFCcD0ZfelWdHwwnfn8ZIQuZp1RXv4qTJK23gV6I RAiGUMUX53JBoWqDBLfDxHI5aM4xZ6gvmaI5XyPg9ewohDu2K8KKU4QlX2qpTkwzlCnu /UCQ== 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; bh=vWbyFOf4V5PXU0iX7KbH4cd/yxRPi16DHsMc4aLJqy8=; fh=aIWr/Wm4eHu3X2mqZr11Avc+Henc63lXYfTT6X2PdEA=; b=Vm1m2dCMQt/fxWVeh5xQl/+JaSmG4AHcVovCSqz3hEKjWePAaSJ5FQu5nq0qEjS0zX RIpsYjjedZF7zrQGszCgAhvvrZXbH4dNZEQbJPJcIEguwcVTR+hdD8Z5j8iGoKgUWuNU L3txS1zGT9qZs0YBqv52mGU4iQ71shOR9giO1RlpRTbVMSn70m4ThLO5SRieWm5xDdkf bHmWzBq1+hmZ4AqRbiuRMl6+0dGy2Ay7AeZVd0xM0Le2EDcFy8FGtBMBx80q0MrguXmj a1fW3TUrkWo7NVNpOuT2nCUu/Y0/6w37/E+YLMWDVK1nRAwRStRuEOldSZkGTs68yD3f 6qaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=dsjJPEhA; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-111504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111504-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ik4-20020a0561025f0400b00476d3e6a168si118994vsb.494.2024.03.22.06.32.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:32:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=dsjJPEhA; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-111504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111504-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3C84A1C2330F for ; Fri, 22 Mar 2024 13:32:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94CC947A5C; Fri, 22 Mar 2024 13:27:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="dsjJPEhA" Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85FEA60881 for ; Fri, 22 Mar 2024 13:26:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114021; cv=none; b=pJm1e9EOAFJzWYcWkBck3VCdK5USKUAq4njIbRYNV7mnxko4Xyq4X2uUS9xjVuMqga96q7puufkHGV9/avQwJIhnW6tlXuvk6dBsG4Uuy8bgSSl910WDB/Tum7ZIOv6hPzgvyUJW9n0jWLnRR4rAtYFzSeiWNHXCsxQ5zP4VO9o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114021; c=relaxed/simple; bh=IT1cLzX/MW7DWta6VFhg4vcgUE19Sls0w1v03CPRnGw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jU6WXCo0wLPtTMb1XPnjIWSojg30pBC7lQ9soWXYFNBUlRQKbtoHcSAlUpcclSpJDkEv/D7Dts5d6l6hNe2tXTyZBFqgxbbS/2tBIarr1j4afSgGI0IgnguyVCgcbH+nTu7Evgh8v56e+g8XrElokgXn355RJYpVHgYYhgtUvn8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=dsjJPEhA; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=vWbyFOf4V5PXU0iX7KbH4cd/yxRPi16DHsMc4aLJqy8=; b=dsjJPE hALiYPDPqtAFQ9EyzYechmRJCyKo2h6c35ksfOQrlgN1rmUEg4Y7fLngd2J9G9p+ Oz0qQTHVz4dyoVxysc3oIAd6aqrD8dQRVBORRlMCPZGEdR4jQ2LW/DqZfTAfoosv +biP1HBKQbD508GCkIiyb+YRG9E/PbE7lFGuIFBsw79gPg0F2oH+mWImZLKKIpzs 9MltKvpsXhxOhqVMhDQwY4xWK9SoMDk6X9kz/J5121N3QLsWaVz5j4ZSUuswAA9g V3CWKqHMUpyk6P94HcL5l5ldZJhTATEzYi8BfVlUOJHG53Mw+tVekPrFcBCnzfwW gbk3bi9HmsyGDb7A== Received: (qmail 3870775 invoked from network); 22 Mar 2024 14:26:42 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Mar 2024 14:26:42 +0100 X-UD-Smtp-Session: l3s3148p1@rQJJxj8UupRehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Dong Aisheng , Andi Shyti , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 26/64] i2c: imx-lpi2c: reword according to newest specification Date: Fri, 22 Mar 2024 14:25:19 +0100 Message-ID: <20240322132619.6389-27-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240322132619.6389-1-wsa+renesas@sang-engineering.com> References: <20240322132619.6389-1-wsa+renesas@sang-engineering.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 Match the wording of this driver wrt. the newest I2C v7, SMBus 3.2, I3C specifications and replace "master/slave" with more appropriate terms. They are also more specific because we distinguish now between a remote entity ("client") and a local one ("target"). Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-imx-lpi2c.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-imx-lpi2c.c b/drivers/i2c/busses/i2c-imx-lpi2c.c index 6d72e4e126dd..337a55804463 100644 --- a/drivers/i2c/busses/i2c-imx-lpi2c.c +++ b/drivers/i2c/busses/i2c-imx-lpi2c.c @@ -262,7 +262,7 @@ static int lpi2c_imx_config(struct lpi2c_imx_struct *lpi2c_imx) return 0; } -static int lpi2c_imx_master_enable(struct lpi2c_imx_struct *lpi2c_imx) +static int lpi2c_imx_host_enable(struct lpi2c_imx_struct *lpi2c_imx) { unsigned int temp; int ret; @@ -292,7 +292,7 @@ static int lpi2c_imx_master_enable(struct lpi2c_imx_struct *lpi2c_imx) return ret; } -static int lpi2c_imx_master_disable(struct lpi2c_imx_struct *lpi2c_imx) +static int lpi2c_imx_host_disable(struct lpi2c_imx_struct *lpi2c_imx) { u32 temp; @@ -459,7 +459,7 @@ static int lpi2c_imx_xfer(struct i2c_adapter *adapter, unsigned int temp; int i, result; - result = lpi2c_imx_master_enable(lpi2c_imx); + result = lpi2c_imx_host_enable(lpi2c_imx); if (result) return result; @@ -502,7 +502,7 @@ static int lpi2c_imx_xfer(struct i2c_adapter *adapter, result = -EIO; disable: - lpi2c_imx_master_disable(lpi2c_imx); + lpi2c_imx_host_disable(lpi2c_imx); dev_dbg(&lpi2c_imx->adapter.dev, "<%s> exit with: %s: %d\n", __func__, (result < 0) ? "error" : "success msg", @@ -554,7 +554,7 @@ static u32 lpi2c_imx_func(struct i2c_adapter *adapter) } static const struct i2c_algorithm lpi2c_imx_algo = { - .master_xfer = lpi2c_imx_xfer, + .xfer = lpi2c_imx_xfer, .functionality = lpi2c_imx_func, }; -- 2.43.0