From patchwork Sat Jul 6 11:20:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 811296 Received: from mail.zeus03.de (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 F3C8714B092 for ; Sat, 6 Jul 2024 11:21:56 +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=1720264918; cv=none; b=rlQBnbSg25wabormeltqGCspg+dupEyDYiBgz8NxoLY6kgneZ8PCddIipgHpjd3wdBy9cfAEIqR5UORorI0vFRZKAvMCS6/OMu1vOmwPSmgxXLr0Y98QWigUHwjwOvFKLUvstD9kfs8dEcNQws1NmFDoXajua3izcohnWkYVXwU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720264918; c=relaxed/simple; bh=9QWvlSczun9moMCOETWvHJGW+Uh7dk/ns0ejbWRYdP4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OeI5f5+fCVg07tPKnTkoZX8cBI44EBbWu0lDBKSa8TXqfuApOLbpOSW+JtFQzDzcmI0YmXiaYwfP1dOA5+AmLGy0zhHACdbWNbnORDqJFnzvtUah77uv2TETig0Umu268ljgWyjRS+d3e0uE3kK1AUCoITWjV4TuKeT0bEUPtyI= 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=efM9bYrw; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="efM9bYrw" 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=Hx9gDFXCtpqgkO9P5FolartfjY2YrLB3I4D/2wnut1Q=; b=efM9bY rwWk6x+sRL4PXlgbzPJPxa0L8ZkD2nq9dXimn81cssIy8DnQ4RtdLvCIKFmqDvqd 9reoeVoCV3snixD3Bj3MTrlaaCbi5mmZdpN9z/8mdZu0LgKs7wtsA6+lnE6Bkdb/ E33hv+ZMxKab1hHIUOq2h857ktQMOCh16EED3ngihq08G7jU1v1/qRKn6IWsEs75 KDyUnXeAbeJb9O6TUdbTRTjFmYh2prFhdd5Uj3uwhDjU5Ak0HoDxs11h9LDChWc5 XQYL/csCev/r4KsKgEY06fSzf7ZrHEDwPMCsFdmXKOgj10RoK2zulTp/uPpnlRLt HP3yxCask96zYHHQ== Received: (qmail 3810263 invoked from network); 6 Jul 2024 13:21:41 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 6 Jul 2024 13:21:41 +0200 X-UD-Smtp-Session: l3s3148p1@gGJcYpIcZIZQT+F6 From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Vladimir Zapolskiy , Andi Shyti , linux-kernel@vger.kernel.org Subject: [PATCH v2 27/60] i2c: lpc2k: reword according to newest specification Date: Sat, 6 Jul 2024 13:20:27 +0200 Message-ID: <20240706112116.24543-28-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240706112116.24543-1-wsa+renesas@sang-engineering.com> References: <20240706112116.24543-1-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Change the wording of this driver wrt. the newest I2C v7 and SMBus 3.2 specifications and replace "master/slave" with more appropriate terms. Signed-off-by: Wolfram Sang Reviewed-by: Andi Shyti --- drivers/i2c/busses/i2c-lpc2k.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-lpc2k.c b/drivers/i2c/busses/i2c-lpc2k.c index e3660333e91c..9fb33cbf7419 100644 --- a/drivers/i2c/busses/i2c-lpc2k.c +++ b/drivers/i2c/busses/i2c-lpc2k.c @@ -50,7 +50,7 @@ /* * 26 possible I2C status codes, but codes applicable only - * to master are listed here and used in this driver + * to controller mode are listed here and used in this driver */ enum { M_BUS_ERROR = 0x00, @@ -157,7 +157,7 @@ static void i2c_lpc2k_pump_msg(struct lpc2k_i2c *i2c) break; case MR_ADDR_R_ACK: - /* Receive first byte from slave */ + /* Receive first byte from target */ if (i2c->msg->len == 1) { /* Last byte, return NACK */ writel(LPC24XX_AA, i2c->base + LPC24XX_I2CONCLR); @@ -196,7 +196,7 @@ static void i2c_lpc2k_pump_msg(struct lpc2k_i2c *i2c) } /* - * One pre-last data input, send NACK to tell the slave that + * One pre-last data input, send NACK to tell the target that * this is going to be the last data byte to be transferred. */ if (i2c->msg_idx >= i2c->msg->len - 2) { @@ -338,8 +338,8 @@ static u32 i2c_lpc2k_functionality(struct i2c_adapter *adap) } static const struct i2c_algorithm i2c_lpc2k_algorithm = { - .master_xfer = i2c_lpc2k_xfer, - .functionality = i2c_lpc2k_functionality, + .xfer = i2c_lpc2k_xfer, + .functionality = i2c_lpc2k_functionality, }; static int i2c_lpc2k_probe(struct platform_device *pdev)