Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1137857lqp; Fri, 22 Mar 2024 06:46:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVDFjU2n0sZuvhF4UtkUZpidBI9jpJwv2kbrZxVKUP84S5BhEI+Uzzcuauph87CJs6Xq0OWsRFZQRikvzhmnjWoI6v0bBEUPf+zrAfFKA== X-Google-Smtp-Source: AGHT+IH04LQVom64DFJykUg48D2XQmbkNXR0d3v4eV4AFJrn8dMgqJ24DNSoth6nczGFr2HH4Omq X-Received: by 2002:a05:6a00:3cce:b0:6e7:48e3:7895 with SMTP id ln14-20020a056a003cce00b006e748e37895mr3509490pfb.2.1711115164448; Fri, 22 Mar 2024 06:46:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711115164; cv=pass; d=google.com; s=arc-20160816; b=smfZ/PNw5HUmsUQpscWI+2YAiAPT0imBBCrP1z5WJivYpb8vkQEzYJ2v29yy9WD+un FgL05TVFuvHpujOzc5uCHj3h2KrBCbk8FvuYXRiLsAQpF2VcrEulEhIu+M4l63ADwemi 4i5Rw9tK16IQcObpWKaQLA++wmJigVi4juiUBj0OZbTMJMqJoLaVjftpca5FZSmwlPBN wr/LmsUKUvtu05D6YwnzoDSmbZNkuQB33C7YUoUeHs9A8JXeCST6j567e5CP1gQOJPP8 kkyJGKX6fwk8d92Hq5fYsBq9JCsGzuxq1D/dlkC/VuRwiXBZhOozMpeA9sn5ZjQuvp0B XIYQ== 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=va8vNqc+zL5cgGG+Iw+afAtq26+B226YZpwpqFLNgOs=; fh=ZzIKjluko61Bzx11bhPid7KOQtf4jarC5abaUZX6WS4=; b=yS2dVtqO+lfQEYVnrdF1B+0A15MNMVpujv3LNmAz4lvMzuHzEd54v7Fd1bU1an34ji 1TOxexlaeKdkBPgqQlfkmX4iI4DzHo3l+fTEcXERCOngd1iNufm+MkKujjB4F+1n9Tud Arzv7mrm7Glnh3+c/hSicb4c4VMP7OGOfv4IlRhJlxV8sT0KvmacI/+nU7UDXua+D1+j PbmuHQE0EaNBKMEsinboFZx2MCBkEXqyV9F9R4zZb+IT+rcgKAYqrNotjZq+sxf146yE gy/21QiMI+dobtxPq0aSHzX+ozVRcqirku+lWIZjAmSP/9JW0azDqvYNpnqcY4sXWijb SMeg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=j5w+mNFM; 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-111520-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111520-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s12-20020a63924c000000b005cddfe0c82bsi1965832pgn.211.2024.03.22.06.46.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:46:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111520-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=j5w+mNFM; 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-111520-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111520-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7069FB26784 for ; Fri, 22 Mar 2024 13:36:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16CED63106; Fri, 22 Mar 2024 13:27:18 +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="j5w+mNFM" 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 6953C47F64 for ; Fri, 22 Mar 2024 13:27:15 +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=1711114037; cv=none; b=AZN1+Ei1BtzW2g1R6XpIuKnmWXcEp4JZK5UoUEr4Hf1I/OH7SbR472D/Eqhmaw1WZ3MQXScxCRIYzBCSxOZG5U722mTSIkeKPx2TzPZhZp3YyWPhdDZABwjcH/EFJdGy3XWM06LgdIMbfdhiMXkfQsqPz3tbE073keAAW8hR+6c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114037; c=relaxed/simple; bh=DeTqKdsiejBH+wRIa/M4NTukOGyfLyvqMN1tQylxrUk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ukpC/QDUrev+3XWWGyR5JA5pVlKtJyeEQdSr9Ig6oeZgV4fkVnVlWJjmOsp87v1MEiGm9Qrkf3p7RnxVfyqU2AmFBMdumhS2FZV9lMw7X7CsgXfVPqXk5DW61zTyHFk1xFDEk2Dx0N4SrWuaxD+lFTxekqaHcEf2EAihPeus3+Y= 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=j5w+mNFM; 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=va8vNqc+zL5cgGG+Iw+afAtq26+B226YZpwpqFLNgOs=; b=j5w+mN FMDRK5YOf4guug8Ig9fZ1bSeTpXeJ7j/XXuEg4MIWvaY8dsq7cphzqVA5u1hhRdy 9UQBj0LmMlscXjO0aGOU5eADSLZtwkU732kzjJ2rYmq5YsrL1XEnRLHizTepZNHi tNG6MFnCt50+MqHjI2tnI/Dfn3e0YytD8xEAY7ql1nJek5o+/7Y/f6ycDlCIYHrm 7jGqGWkaITt6mHoKGz03HL0E2vzYq9IuxAjMvM774UoAC4UD2XqLwsFu16ZU8IBN 5jXz/kDrygaz2ow2iqPhuWWQr0NerJLpOq1N2FJ9Cofsj4fxDdvJU31rArK7xWdX RtkV/+rHc99cBZSQ== Received: (qmail 3871489 invoked from network); 22 Mar 2024 14:26:56 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Mar 2024 14:26:56 +0100 X-UD-Smtp-Session: l3s3148p1@NvkVxz8UgrBehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Andi Shyti , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Aneesh Kumar K.V" , "Naveen N. Rao" , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 42/64] i2c: powermac: reword according to newest specification Date: Fri, 22 Mar 2024 14:25:35 +0100 Message-ID: <20240322132619.6389-43-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-powermac.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-powermac.c b/drivers/i2c/busses/i2c-powermac.c index 8e57ebe595be..03abc5f3cb9e 100644 --- a/drivers/i2c/busses/i2c-powermac.c +++ b/drivers/i2c/busses/i2c-powermac.c @@ -25,7 +25,7 @@ MODULE_LICENSE("GPL"); /* * SMBUS-type transfer entrypoint */ -static s32 i2c_powermac_smbus_xfer( struct i2c_adapter* adap, +static s32 i2c_powermac_smbus_xfer(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, @@ -127,11 +127,11 @@ static s32 i2c_powermac_smbus_xfer( struct i2c_adapter* adap, } /* - * Generic i2c master transfer entrypoint. This driver only support single + * Generic i2c transfer entrypoint. This driver only supports single * messages (for "lame i2c" transfers). Anything else should use the smbus * entry point */ -static int i2c_powermac_master_xfer( struct i2c_adapter *adap, +static int i2c_powermac_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { @@ -180,7 +180,7 @@ static u32 i2c_powermac_func(struct i2c_adapter * adapter) /* For now, we only handle smbus */ static const struct i2c_algorithm i2c_powermac_algorithm = { .smbus_xfer = i2c_powermac_smbus_xfer, - .master_xfer = i2c_powermac_master_xfer, + .xfer = i2c_powermac_xfer, .functionality = i2c_powermac_func, }; -- 2.43.0