From nobody Wed Dec 17 13:51:50 2025 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 331096F30D for ; Wed, 10 Jul 2024 06:42:24 +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=1720593748; cv=none; b=kG15tQjzxBsBsVeTte4tXp3LhnTavnZNATXFLzSYDQqwPuDU5J2PQqJxibbOQRXkkg4eCPGOkD55dxn9HvhNZevCnmIejrK1Ete9Tn/MedwHxnpKnav4uEKx1gFH+m/sphz1oM2HJ6Tno/PzL/1FyVonKR375St4qqPqYyJUfK8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720593748; c=relaxed/simple; bh=Kj5begewwvgpjSAJTWMhDgtQuivvptNKrI+AMPbO1SY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pBUJEW0lkF2o54IOJrHpPj1iubVMmAD6xbF+v03cXCCpqz6GcA8gMLpBBFmVgHXyEXHLsa7AIbXmwVLCOnWQpM8mBubuJddHpJ9ZZl3JEnMk8lB8si2661DghSLqRiXHSXDwL9iotjb8VcUfMVWvSjriQ67I9uNWuHHMfyyleSw= 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=dQDNDdZ7; 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="dQDNDdZ7" 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=uUilxxdTgFT3yoGo3ECHRRYIkr8ZMska7k5sSrD+0VQ=; b=dQDNDd Z7gwIqqVVF9I8Uubiv3ZKkOz+Ki4bWZFkjJbEAP+7avGs/LXyLAE260HU0MI8TS+ HdufHQRwJWScLNnoV9cHRxAd2a/FWWolThZxrMgOFbhPHQFAHxYkl/fBNxnXx1kZ 8b078nGKssacJzepoJqeeaA+GWUGG11xk2rvPvpptnrkgphXEAuRe3/u+bCdhWM8 4eWzMJ2a7iDfeGoSb0KEQEx5FMxqlKhxDPnEHC0VErqwcNkx0cw0YcBbWcc1UjDI AiyR1QyfSRaLZBSMaE+5mikpg3nEbTQ5CYTzlrlrALdDQCEwwweWaKLvqBDxqetl rb7Zp8jylLJjzWJg== Received: (qmail 433033 invoked from network); 10 Jul 2024 08:42:23 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 10 Jul 2024 08:42:23 +0200 X-UD-Smtp-Session: l3s3148p1@Z9HX8t4cdsgujnsa From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , =?UTF-8?q?Bence=20Cs=C3=B3k=C3=A1s?= , Andi Shyti , linux-kernel@vger.kernel.org Subject: [PATCH v3] i2c: cp2615: reword according to newest specification Date: Wed, 10 Jul 2024 08:41:23 +0200 Message-ID: <20240710064219.6800-2-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240706112116.24543-10-wsa+renesas@sang-engineering.com> References: <20240706112116.24543-10-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: quoted-printable Content-Type: text/plain; charset="utf-8" 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 Acked-by: Bence Cs=C3=B3k=C3=A1s --- Change since v2: * reworded comment about NAK for consistency as well (Thanks, Bence!) drivers/i2c/busses/i2c-cp2615.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-cp2615.c b/drivers/i2c/busses/i2c-cp261= 5.c index cf3747d87034..e7720ea4045e 100644 --- a/drivers/i2c/busses/i2c-cp2615.c +++ b/drivers/i2c/busses/i2c-cp2615.c @@ -60,11 +60,11 @@ enum cp2615_i2c_status { CP2615_CFG_LOCKED =3D -6, /* read_len or write_len out of range */ CP2615_INVALID_PARAM =3D -4, - /* I2C slave did not ACK in time */ + /* I2C target did not ACK in time */ CP2615_TIMEOUT, /* I2C bus busy */ CP2615_BUS_BUSY, - /* I2C bus error (ie. device NAK'd the request) */ + /* I2C bus error (ie. target NAK'd the request) */ CP2615_BUS_ERROR, CP2615_SUCCESS }; @@ -211,7 +211,7 @@ static int cp2615_check_iop(struct usb_interface *usbif) } =20 static int -cp2615_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int= num) +cp2615_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct usb_interface *usbif =3D adap->algo_data; int i =3D 0, ret =3D 0; @@ -250,8 +250,8 @@ cp2615_i2c_func(struct i2c_adapter *adap) } =20 static const struct i2c_algorithm cp2615_i2c_algo =3D { - .master_xfer =3D cp2615_i2c_master_xfer, - .functionality =3D cp2615_i2c_func, + .xfer =3D cp2615_i2c_xfer, + .functionality =3D cp2615_i2c_func, }; =20 /* --=20 2.43.0