Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1132412lqp; Fri, 22 Mar 2024 06:37:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUTzKe4q3ijJdZJVCcVtAkzFVjklAIwO/4JiOYCSNUvO5Rj1PSY9H2eh15Mg9rPMykCp4ExA24qXqQgXDmxP/W0Rk92i7KQ2kX3cuJscg== X-Google-Smtp-Source: AGHT+IHEgn4WiOaC5J1Um2+gS9SYyjOqdnVCfpnbfAdlWMqwfJfnIdC2Sm0kbxzYvpGTisOg1Sw0 X-Received: by 2002:a17:906:7849:b0:a46:e090:5107 with SMTP id p9-20020a170906784900b00a46e0905107mr1502717ejm.32.1711114631089; Fri, 22 Mar 2024 06:37:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711114631; cv=pass; d=google.com; s=arc-20160816; b=OjIf5x8x+kibgU0QFLyOS9I+T56C42ErWNNPwTJko6Pdg4bmW8mkFbJHO6lL1vt5Wk u6vDPNv0XOl0pDUW3N/laQnfpEvN/OdBne1lIoR/v9WYx05o8YB2IS12UkeBt02lJAvT EP3eTlfG7HkcZZxlkPq9nrdM+eBtwL/JD03pAqiriC0wWfk9wfogBp/r7L6XBesD1wY6 rCGzu2hWZzO6HUwbtQTzOkP7OTcWsAkpJexxn52Tv/9ifDdbuMYPccMkWMO1FawW4DNK Q0mC0l8gvvU4Vj6yx7gU5qIhnQLS57NDXNSdhAmAntikPizjATYKzFVeJEv+0OOLvaae h/9A== 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=zciHgMoD1B5iI7bHKqcQfg5mAImSqokaqFAlMo9s3zY=; fh=9Wmzv9h8PLKGgXzWuvqoxC8Fpvau1dJsJvmNcbgOvmE=; b=U9rTojAkiS5mNrlsg32AZLfYQX/niC5rK0swu+F0GIn3v/xgEw6qjKN+J8K6dqcGHz UiDqwGdPQ1J6eQikBgu2RQTCXvDVG+e4npmbTfjyy481K8PpmiXKgisqxzZtZcuCnAwh saYuQe4KSguKi/AlfaDMETv4hOuWVa5J7kpp6XXA4IdrKgOcdX+RoKDz2ZvvhYPXYLQk kP3Z5B78K4LutadnnIxm3aUTTOZhnErmRLkZbknFazyo7K6RZVIwrnDyErOsraeldBFv JXwSeY4WjXWzJ+/Ui9U17+C2KJa/qU3LfS2S9H4PlzKADMlAOWwqVJzC1I6UAnMRhark NIMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=geNmA+Xk; 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-111497-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111497-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v8-20020a1709063bc800b00a46a7d00b45si906489ejf.125.2024.03.22.06.37.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:37:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111497-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=geNmA+Xk; 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-111497-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111497-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 am.mirrors.kernel.org (Postfix) with ESMTPS id DEABA1F24226 for ; Fri, 22 Mar 2024 13:30:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34FC6604A9; Fri, 22 Mar 2024 13:26:56 +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="geNmA+Xk" 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 3E7DF5D903 for ; Fri, 22 Mar 2024 13:26:53 +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=1711114015; cv=none; b=BlZZgn6t8WY85qgofzL96ISN78ee1kj+Pk171kVmxaGMJzvP22a84//tqsK82LJwdNrwW3h5NwerS6sNWjzx+ENi4XthJqiixuzdPR3OXdtr/FUpTG6eEOZbN4tDlukfQDh/im1yjhpNnFtkW9HKTY4qdOhkEP79lcEwxJS8K7g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114015; c=relaxed/simple; bh=FVpP8gUoUPw0PWyX7HyL4JNCQPt2zkfreDGXWCxyGkk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UDIRCnlHwCUdThV92RgaqXew8mshJmSwFZ1tiFzVlEsSXnPOaQcMlplbYlKZCg5/8/QkkWd/7luml//QLr4zqL2lwOlA8g/jrAsjaqcf0yoIQXNNQV+HqqbGIFufGb6qFsaf7iAwD0/KoD5r0GVgh06ES3wUpBWtrzIWFH1sS0M= 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=geNmA+Xk; 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=zciHgMoD1B5iI7bHKqcQfg5mAImSqokaqFAlMo9s3zY=; b=geNmA+ Xk/PkFxVZEpN7uQ41IheFU2gZ6VVyNAwPcLDqO2/ncFPSH04tw3JAA8PscIsFTrX zM607Lfpi1SUxvdbHOdMqMNW76WlsIr1DPZPaj0MMQNd7SYvvX5efVOpwXlGISyq TB7CsEpCFrKWjZTMxTmm6yn20lx98Gx2bLwdaQ577YjNKNrXwC5z6W6+kOy0ch1Q olQ7ExyfLv6Ag6vqno7GkWwUZ5qjesRjQefYFO+Qe9FgodY0wy24cbXsFHpm7rHt D4U/WTFn8+GIAGz8ycOiu1Ot3nusrbwI7Z1qW2+XMmZDZrw7s7k06xtxFcCTEprb u0idRjxNCvcMjhCA== Received: (qmail 3870529 invoked from network); 22 Mar 2024 14:26:36 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Mar 2024 14:26:36 +0100 X-UD-Smtp-Session: l3s3148p1@+rvuxT8U6uBehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Andi Shyti , linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 19/64] i2c: emev2: reword according to newest specification Date: Fri, 22 Mar 2024 14:25:12 +0100 Message-ID: <20240322132619.6389-20-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-emev2.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-emev2.c b/drivers/i2c/busses/i2c-emev2.c index 557409410445..e67c55abff88 100644 --- a/drivers/i2c/busses/i2c-emev2.c +++ b/drivers/i2c/busses/i2c-emev2.c @@ -314,7 +314,7 @@ static u32 em_i2c_func(struct i2c_adapter *adap) return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL | I2C_FUNC_SLAVE; } -static int em_i2c_reg_slave(struct i2c_client *slave) +static int em_i2c_reg_target(struct i2c_client *slave) { struct em_i2c_device *priv = i2c_get_adapdata(slave->adapter); @@ -332,7 +332,7 @@ static int em_i2c_reg_slave(struct i2c_client *slave) return 0; } -static int em_i2c_unreg_slave(struct i2c_client *slave) +static int em_i2c_unreg_target(struct i2c_client *slave) { struct em_i2c_device *priv = i2c_get_adapdata(slave->adapter); @@ -352,10 +352,10 @@ static int em_i2c_unreg_slave(struct i2c_client *slave) } static const struct i2c_algorithm em_i2c_algo = { - .master_xfer = em_i2c_xfer, + .xfer = em_i2c_xfer, .functionality = em_i2c_func, - .reg_slave = em_i2c_reg_slave, - .unreg_slave = em_i2c_unreg_slave, + .reg_target = em_i2c_reg_target, + .unreg_target = em_i2c_unreg_target, }; static int em_i2c_probe(struct platform_device *pdev) -- 2.43.0