Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1134621lqp; Fri, 22 Mar 2024 06:40:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXUwdmEzmjEcK5Kix02Crpqftda/1PavIT00GDBm1z+NkmBbRlY01QrNnA2kuTwQu3khp477VcaLdEQm6w2LYt66pFCoW2G38vDKVKGLg== X-Google-Smtp-Source: AGHT+IEW+KLHaugi/rLRYO4xegX1WlP3RKeZAVX43NNFO84tMXajjoK2Kja6iQYridCPiNZ2Ry/a X-Received: by 2002:a05:6358:718d:b0:17b:71cc:8f5a with SMTP id t13-20020a056358718d00b0017b71cc8f5amr2797647rwt.27.1711114847892; Fri, 22 Mar 2024 06:40:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711114847; cv=pass; d=google.com; s=arc-20160816; b=kv7jtDViYN96PHW9iBeYT7k6pp1arBUjG/J6jA0vw+tJK5IXBEoXAWJbbtS6Est3W9 yZldEA31oOeLN+Hc829A4Mu3CDXQvmE6D4ZiW2Q8VgHbXcWggg2gzQEYUjIi2hxOWd+w fRXUA57IxOxbwwrF5NpzAcPyFqq9p8k9oHyEINsQ0SCG3Dp1hkPLCRtGqMA35DNyr2pJ lAl7d10T0X/m51lkhxDVNyt2poF/1hmaN8/OzR7zUtvs1wWwMTqupkBIUQQT3s58Z07q 64u810y2PCX6beVe9QV6uU6aelZOAzjcFvS42YC9/yPuobPp4F6F3NQEWv5/V3AQcna7 +CRA== 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=v5icbxJz6JkP2dpvAuHf8kDHkY/a+aKxThUJ7RMnku8=; fh=UJgGsIj3v4K60Vrb/sALMQCdg3OHmTyVYoVoeABJ81s=; b=g7L8ZjVMpe6EOoerXDS25FkI6szeVOqQy0dS2PRlnrSF74NfBWdjsNiMpEEfJqEZMW 1GI+u9rPQaUcOs7+1tzflluZXnlWBHAy/4ijbKMmycA8aAqrzZJxz5P39+ia9k4K99Bx +iEPbyZthhHwOG94amOiI2+/66BeTn+vlgQ4xupy5eYp+2yibMHih5mfqXiAIlcfRTwI 2Pn7tWk6C+ArkO0DDw7cYew0wttNGUylNE+f7ao65b69UpcjENKbUGNAPW9/VKOznMxg davMlVxHLrNwl9hijp55EiFHnEbQjsDqQURw++2S5ViBwsgRGiikHYsmT5TP/dVG6LgC gnsg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=dZ9TpqDj; 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-111532-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111532-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f25-20020a639c19000000b005dcbb9abbaasi2065042pge.310.2024.03.22.06.40.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:40:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111532-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=dZ9TpqDj; 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-111532-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111532-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 55A62285A0D for ; Fri, 22 Mar 2024 13:38:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A625966B2C; Fri, 22 Mar 2024 13:27:30 +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="dZ9TpqDj" 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 54ED165BB2 for ; Fri, 22 Mar 2024 13:27:27 +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=1711114049; cv=none; b=Z82s9eEuk14hkUJnp2oJdoioZ4p61BWwO3cu48+7i5i37sd/J3PCRQAwZe82EqeXabR9a/k0L2h/DDYWGUvDTN6uFdHB9CLpHrX+b3NeMUtRNQFKpgMMnxhr+EU877p+bkqRi4janLvCrE2QZs9zBO5bPX3YLMxYU11kRR1o1vg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114049; c=relaxed/simple; bh=fHpjjT7VWPlWf89q6pOUOQOpJIvNvwHkfmzjVoejNB4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=REk/oiuUIN5l3QMJR80gGLJznut7U9yc8mmjRYf2Cg+MrnehM1jvtQVfxWUPKDPHKJiZa9bMZJuEGmdb2evMBKfk7pQ7LzYJcCIQbpjN2XFbTlltZVZM1n/XkNkzz1+c5XFHmN/tcvzsEaI197V7Cf9txft7rTLSCqYrH8MTWfM= 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=dZ9TpqDj; 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=v5icbxJz6JkP2dpvAuHf8kDHkY/a+aKxThUJ7RMnku8=; b=dZ9Tpq DjfvPnqYwJtDQcHEgBqxDnzAKKnJ3VU1tjc/rrXPkf+9nnGOnfOqlSGafJGIVZP6 ROpLbnxNrSAowYXsvgKf+8YD27AVoKRd+CVNAIrkcowPWR5gaxqRMM/5kKWpycTs D5ChfZAmfkQqsFyFXea1/goq4Df0dQqRWeyXY+XuloF9LqgKrxpGJJtGazDyhLIW D4dHOqL1MLnS0EXK+ZDAhjzcDoqPvyr79MbAQ0tNAz5bWtMSBDoXvnpp0N3O8qXV AcN1wn7/pHqFLP9Dksau7EbNIhSSyHUDyg2N6+2NCu+RZ+0JUigNg3+k01lDOpU3 vnczVBL9ntCLhMbg== Received: (qmail 3871957 invoked from network); 22 Mar 2024 14:27:05 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Mar 2024 14:27:05 +0100 X-UD-Smtp-Session: l3s3148p1@liKsxz8UQpRehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Pierre-Yves MORDRET , Alain Volmat , Andi Shyti , Maxime Coquelin , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 54/64] i2c: stm32f4: reword according to newest specification Date: Fri, 22 Mar 2024 14:25:47 +0100 Message-ID: <20240322132619.6389-55-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-stm32f4.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-stm32f4.c b/drivers/i2c/busses/i2c-stm32f4.c index 859ac0cf7f6c..297f2ace6b94 100644 --- a/drivers/i2c/busses/i2c-stm32f4.c +++ b/drivers/i2c/busses/i2c-stm32f4.c @@ -95,7 +95,7 @@ /** * struct stm32f4_i2c_msg - client specific data - * @addr: 8-bit slave addr, including r/w bit + * @addr: 8-bit client addr, including r/w bit * @count: number of bytes to be transferred * @buf: data buffer * @result: result of the transfer @@ -480,7 +480,7 @@ static void stm32f4_i2c_handle_rx_done(struct stm32f4_i2c_dev *i2c_dev) /** * stm32f4_i2c_handle_rx_addr() - Handle address matched interrupt in case of - * master receiver + * host receiver * @i2c_dev: Controller's private data */ static void stm32f4_i2c_handle_rx_addr(struct stm32f4_i2c_dev *i2c_dev) @@ -643,7 +643,7 @@ static irqreturn_t stm32f4_i2c_isr_error(int irq, void *data) /* * Acknowledge failure: - * In master transmitter mode a Stop must be generated by software + * In host transmitter mode a Stop must be generated by software */ if (status & STM32F4_I2C_SR1_AF) { if (!(msg->addr & I2C_M_RD)) { @@ -749,7 +749,7 @@ static u32 stm32f4_i2c_func(struct i2c_adapter *adap) } static const struct i2c_algorithm stm32f4_i2c_algo = { - .master_xfer = stm32f4_i2c_xfer, + .xfer = stm32f4_i2c_xfer, .functionality = stm32f4_i2c_func, }; -- 2.43.0