Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1134890lqp; Fri, 22 Mar 2024 06:41:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqrCLQYeM0foMGopkRLnPLHY8sM2ti4sT5ZLOsTLcVAi8FqKPhyeuesm6U1KoHHerzbC0QcqKrRCIC1oZkbhpozkNGE+3CliTM5CD3ug== X-Google-Smtp-Source: AGHT+IEXCKmeXSfrYWeRPHCYFGzrTfHhu4ixBmmqsv+WniFM4qjM9ilqPvprK4TAv72dT78RyPIA X-Received: by 2002:a05:6a21:3101:b0:1a3:6ed5:dbe with SMTP id yz1-20020a056a21310100b001a36ed50dbemr2955919pzb.10.1711114878384; Fri, 22 Mar 2024 06:41:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711114878; cv=pass; d=google.com; s=arc-20160816; b=YtR/5Ee/V0AZgdaJHhnAJVueK/S2EsKGfp8/QOOFcxVO9wm+PyA4DQ367uHU6CVzI5 cL7bT+H95cobqi9Fe0Ud4CsuaXtHwkpJ8GK5N5P2+mWu+DH/bZuImaVg1GTkrwc9bk9m o9tCZx0F2FENX/zvifIP7lXtjl8HemOkEkh5eCZumvFovGLiwTP/r1Yn5ChgfYQ8D4xC tR2ovLL7YFJ5ahjWO+HPWUWy3dJ6EM2dLgYCW7CSyO40FDHxhPRDE1z1g+vrh8pP4uU+ Z2dml5zPWwFrwKOJ1hV9LOMRrnxxYGQRjpZwD/W/1wabOZWqRuHdwdpHAIA+Xer9fUsl 5y8A== 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=hhFcH9ZTNGEANydu8nWsC7JwiC16KFzrlwifPam1sfA=; fh=zW3xBPoH5u09QHbkGowrJEufWHg4J2HfuSQkeUFLY6g=; b=Vai9zgy/eviyd2IGH/5rrIT0vtsoXzo/LBTACM65elbnO9u0lePAuDP6QrTx4m9dTo P0eM1+EXPyeUIkb7qwNRlXNV0wSs+r+BWlu5DZdDOVYXJynhPAlO+9ZZK5QCQ7b1+VQE TF62Jr0KMyvmANxw3Kw8dBTQcDSEBIAFOoETIKZLl3syLpTedNwS7SHt7rSoN9RBOJxP lko4xr9HjPGQJiMZ6GKCqbU9wtWWuOFHB1ioPAXdCI2wuYXu2Tyw41Qzc83b0x8eTs0n s5FDLEAj2kByLGb0ZUafn52AvD+EuRXxrHdDbKOa/basMVnRtAksq4zEo+fLtlCMcmYG XAqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=fPZ5Bd2N; 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-111536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111536-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g12-20020a63dd4c000000b005dccf9bcaa5si1964528pgj.597.2024.03.22.06.41.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:41:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=fPZ5Bd2N; 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-111536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111536-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 D03EF287B82 for ; Fri, 22 Mar 2024 13:39:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DD7E67A15; Fri, 22 Mar 2024 13:27:33 +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="fPZ5Bd2N" 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 A56A266B25 for ; Fri, 22 Mar 2024 13:27:30 +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=1711114052; cv=none; b=r+2+jOAvZmFuq3kEyTnxfaju49qkoYe7bXXtPYuZCcuIwlCNEtXrvJGNkhDkfT9QHR2q8pJKfZ1t5m8mNHsBHkvxTZ65XbJUdkbL/wYPFAeJj+BYo9kq8JOFqXqxE9ohlbivuuVrRDdg/Cb9t/Zv8IgRLk2Ql8/Z5LUTpdEznys= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114052; c=relaxed/simple; bh=DFgZgIWojfRwew+B4gtaz8Ua4P4wxDuCpqQg8yqbp9w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GwamrCiXY+axWZuRwoCkPPsueYv5X9BTPEYDM06H0eSQLL2IFnBgFcv34Sh2FhFJGmfIvO2CcN8Tyf5EqFBdesuMWjrI1HtPF4IAFO4+p0aEQePeFRKnkmTLSg7DdSOz8UOyAO0h8KuoSxT0dfpHZVH6jigmrObGWuU9mPInbYs= 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=fPZ5Bd2N; 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=hhFcH9ZTNGEANydu8nWsC7JwiC16KFzrlwifPam1sfA=; b=fPZ5Bd 2N89JEqXBCKfiZjRTShinhLRMOsdndhUz1yn1wvYdYLfNXIHkbE1kfmkzImUQ6Qz kQfMpAI9dJgV1zysr80npZbezBnvioUZPA1qHeFAxL003Rwzdu7gf6GJeHvYVKKk pJidfepYIBAjv/vWAVbSESV1mL14d/i+x9TMEsC0IYzZv6GncWSqfmCNKxX8T2Cv AcRcLyW1W6SpV3bfnRwAEBy9F0OMlaDiazu7YZijjGoPdF1CWc5Bs5ZLOkPJzteB 3PEPXayPI7enYB1eyNctlXWmp6bGe/F1GWY0iHiyZtqc0l04ANLLTvEXHIJvPWiv eR2Wweob/8BZwsHw== Received: (qmail 3872130 invoked from network); 22 Mar 2024 14:27:09 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Mar 2024 14:27:09 +0100 X-UD-Smtp-Session: l3s3148p1@oEfexz8UWJRehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Till Harbaum , Andi Shyti , linux-kernel@vger.kernel.org Subject: [PATCH 58/64] i2c: tiny-usb: reword according to newest specification Date: Fri, 22 Mar 2024 14:25:51 +0100 Message-ID: <20240322132619.6389-59-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-tiny-usb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-tiny-usb.c b/drivers/i2c/busses/i2c-tiny-usb.c index 1bffe36c40ad..da06d1be0a2b 100644 --- a/drivers/i2c/busses/i2c-tiny-usb.c +++ b/drivers/i2c/busses/i2c-tiny-usb.c @@ -54,8 +54,6 @@ static int usb_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) struct i2c_msg *pmsg; int i, ret; - dev_dbg(&adapter->dev, "master xfer %d messages:\n", num); - pstatus = kmalloc(sizeof(*pstatus), GFP_KERNEL); if (!pstatus) return -ENOMEM; @@ -142,7 +140,7 @@ static u32 usb_func(struct i2c_adapter *adapter) /* This is the actual algorithm we define */ static const struct i2c_algorithm usb_algorithm = { - .master_xfer = usb_xfer, + .xfer = usb_xfer, .functionality = usb_func, }; -- 2.43.0