From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0E988C54E58 for ; Mon, 25 Mar 2024 08:31:18 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=GQYGwCwg; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4V35kD52DQz3vh7 for ; Mon, 25 Mar 2024 19:31:16 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=GQYGwCwg; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.intel.com (client-ip=198.175.65.19; helo=mgamail.intel.com; envelope-from=jarkko.nikula@linux.intel.com; receiver=lists.ozlabs.org) X-Greylist: delayed 63 seconds by postgrey-1.37 at boromir; Mon, 25 Mar 2024 18:55:15 AEDT Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4V34wg5q2vz2xdg; Mon, 25 Mar 2024 18:55:15 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711353316; x=1742889316; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=G9pVMPBkGeSCKm7GL4349gPmBncBHLw8Di6BWoQcag0=; b=GQYGwCwguWSFTSN+jX2YZU1tBmUYhMJblIWluQKfZitlBidq26jjCEoo RYwAlE3HiGPStaIRcBDdryNh8NjEJC4Mo0foKGZKns8+DAS659gSByrRd zoSkSPZtOaRmuwOp6O0gsCRmrjBGoScIHKNcSgFRVKnySnwpd8moiJn5L abw7+/g1LYog2CBRrUKDQdm6Hiz4Y0bl6C3Hc+TvieDqbOCnMWp6ugCsO VTwuTlxKSFpxpvZwRUOV23lqiX/wyZBONbiTeozjYUuEqbcw/jHpksRMN j/APESYFc+JRUYoYTvofvUaSRwVhPWuD42AUAUwz+JS3X1t878kfZGCiO g==; X-IronPort-AV: E=McAfee;i="6600,9927,11023"; a="6199192" X-IronPort-AV: E=Sophos;i="6.07,152,1708416000"; d="scan'208";a="6199192" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2024 00:54:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,152,1708416000"; d="scan'208";a="16197266" Received: from marquiz-s-2.fi.intel.com (HELO [10.237.72.58]) ([10.237.72.58]) by orviesa008.jf.intel.com with ESMTP; 25 Mar 2024 00:53:46 -0700 Message-ID: <1f1e59a4-359e-4679-8ea9-3d915a930e91@linux.intel.com> Date: Mon, 25 Mar 2024 09:53:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 64/64] i2c: reword i2c_algorithm in drivers according to newest specification To: Wolfram Sang , linux-i2c@vger.kernel.org References: <20240322132619.6389-1-wsa+renesas@sang-engineering.com> <20240322132619.6389-65-wsa+renesas@sang-engineering.com> Content-Language: en-US From: Jarkko Nikula In-Reply-To: <20240322132619.6389-65-wsa+renesas@sang-engineering.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 25 Mar 2024 19:29:51 +1100 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Lunn , Shyam Sundar S K , Tomer Maimon , Ajay Gupta , Viresh Kumar , Linus Walleij , Alim Akhtar , Dmitry Osipenko , linux-stm32@st-md-mailman.stormreply.com, Jerome Brunet , linux-samsung-soc@vger.kernel.org, Robert Foss , Aaro Koskinen , Khalil Blaiech , Oleksij Rempel , Sascha Hauer , Nicholas Piggin , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Pengutronix Kernel Team , Alexandre Belloni , Yicong Yang , Laxman Dewangan , Guenter Roeck , chrome-platform@lists.linux.dev, Fabio Estevam , Jonathan H unter , "Aneesh Kumar K.V" , Alain Volmat , Andi Shyti , Martin Blumenstingl , linux-arm-msm@vger.kernel.org, Nicolas Ferre , Fabrizio Castro , Nick Hawkins , linux-amlogic@lists.infradead.org, Mika Westerberg , linux-arm-kernel@lists.infradead.org, Neil Armstrong , Hector Martin , linux-renesas-soc@vger.kernel.org, Maxime Coquelin , Kevin Hilman , linux-mediatek@lists.infradead.org, imx@lists.linux.dev, Jean-Marie Verdun , linux-tegra@vger.kernel.org, Elie Morisse , Krzysztof Adamski , Alyssa Rosenzweig , Peter Korsgaard , Benjamin Fair , Michal Simek , Nancy Yuen , "Naveen N. Rao" , Codrin Ciubotariu , Robert Richter , Asmaa Mnebhi , Vladimir Zapolskiy , Conghui Chen , Benson Leung , Qii Wang , Avi Fishman , Claudiu Beznea , Konrad Dybcio , Thierry Reding , asahi@lists.linux.dev, Shawn Guo , Vignesh R , Tony Lindgren , Alexandre Torgue , Tali Perry , Paul Cercueil , Jan Dabros , openbmc@lists.ozlabs.org, Janusz Krzysztofik , Sven Peter , virtualization@lists.linux.dev, Pierre-Yves MORDRET , Matthias Brugger , Andy Shevchenko , AngeloGioacchino Del Regno , Loic Poulain , Patrick Venture , Bjorn Andersson , linux-mips@vger.kernel.org, Krzysztof Kozlowski , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On 3/22/24 3:25 PM, Wolfram Sang wrote: > Match the wording in i2c_algorithm in I2C drivers wrt. the newest I2C > v7, SMBus 3.2, I3C specifications and replace "master/slave" with more > appropriate terms. For some drivers, this means no more conversions are > needed. For the others more work needs to be done but this will be > performed incrementally along with API changes/improvements. All these > changes here are simple search/replace results. > > Signed-off-by: Wolfram Sang > --- > drivers/i2c/busses/i2c-amd-mp2-plat.c | 2 +- > drivers/i2c/busses/i2c-at91-master.c | 2 +- > drivers/i2c/busses/i2c-at91-slave.c | 8 ++++---- > drivers/i2c/busses/i2c-axxia.c | 10 +++++----- > drivers/i2c/busses/i2c-cros-ec-tunnel.c | 2 +- > drivers/i2c/busses/i2c-designware-master.c | 2 +- > drivers/i2c/busses/i2c-designware-slave.c | 8 ++++---- > drivers/i2c/busses/i2c-diolan-u2c.c | 2 +- > drivers/i2c/busses/i2c-exynos5.c | 4 ++-- > drivers/i2c/busses/i2c-gxp.c | 12 ++++++------ > drivers/i2c/busses/i2c-hisi.c | 4 ++-- > drivers/i2c/busses/i2c-img-scb.c | 2 +- > drivers/i2c/busses/i2c-imx.c | 12 ++++++------ > drivers/i2c/busses/i2c-jz4780.c | 2 +- > drivers/i2c/busses/i2c-kempld.c | 2 +- > drivers/i2c/busses/i2c-meson.c | 4 ++-- > drivers/i2c/busses/i2c-mlxbf.c | 8 ++++---- > drivers/i2c/busses/i2c-mt65xx.c | 2 +- > drivers/i2c/busses/i2c-mxs.c | 2 +- > drivers/i2c/busses/i2c-nomadik.c | 2 +- > drivers/i2c/busses/i2c-npcm7xx.c | 12 ++++++------ > drivers/i2c/busses/i2c-nvidia-gpu.c | 4 ++-- > drivers/i2c/busses/i2c-ocores.c | 8 ++++---- > drivers/i2c/busses/i2c-octeon-platdrv.c | 2 +- > drivers/i2c/busses/i2c-omap.c | 4 ++-- > drivers/i2c/busses/i2c-opal.c | 4 ++-- > drivers/i2c/busses/i2c-pasemi-core.c | 2 +- > drivers/i2c/busses/i2c-pnx.c | 2 +- > drivers/i2c/busses/i2c-pxa.c | 12 ++++++------ > drivers/i2c/busses/i2c-qcom-cci.c | 2 +- > drivers/i2c/busses/i2c-qcom-geni.c | 2 +- > drivers/i2c/busses/i2c-robotfuzz-osif.c | 2 +- > drivers/i2c/busses/i2c-rzv2m.c | 8 ++++---- > drivers/i2c/busses/i2c-s3c2410.c | 4 ++-- > drivers/i2c/busses/i2c-stm32f7.c | 14 +++++++------- > drivers/i2c/busses/i2c-tegra-bpmp.c | 4 ++-- > drivers/i2c/busses/i2c-tegra.c | 4 ++-- > drivers/i2c/busses/i2c-thunderx-pcidrv.c | 2 +- > drivers/i2c/busses/i2c-virtio.c | 2 +- > drivers/i2c/busses/i2c-wmt.c | 2 +- > drivers/i2c/busses/i2c-xiic.c | 2 +- > 41 files changed, 95 insertions(+), 95 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-designware-master.c b/drivers/i2c/busses/i2c-designware-master.c > index c7e56002809a..14c61b31f877 100644 > --- a/drivers/i2c/busses/i2c-designware-master.c > +++ b/drivers/i2c/busses/i2c-designware-master.c > @@ -832,7 +832,7 @@ i2c_dw_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) > } > > static const struct i2c_algorithm i2c_dw_algo = { > - .master_xfer = i2c_dw_xfer, > + .xfer = i2c_dw_xfer, > .functionality = i2c_dw_func, > }; > > diff --git a/drivers/i2c/busses/i2c-designware-slave.c b/drivers/i2c/busses/i2c-designware-slave.c > index 2e079cf20bb5..b47ad6b16814 100644 > --- a/drivers/i2c/busses/i2c-designware-slave.c > +++ b/drivers/i2c/busses/i2c-designware-slave.c > @@ -58,7 +58,7 @@ static int i2c_dw_init_slave(struct dw_i2c_dev *dev) > return 0; > } > > -static int i2c_dw_reg_slave(struct i2c_client *slave) > +static int i2c_dw_reg_target(struct i2c_client *slave) > { > struct dw_i2c_dev *dev = i2c_get_adapdata(slave->adapter); > > @@ -83,7 +83,7 @@ static int i2c_dw_reg_slave(struct i2c_client *slave) > return 0; > } > > -static int i2c_dw_unreg_slave(struct i2c_client *slave) > +static int i2c_dw_unreg_target(struct i2c_client *slave) > { > struct dw_i2c_dev *dev = i2c_get_adapdata(slave->adapter); > > @@ -214,8 +214,8 @@ static irqreturn_t i2c_dw_isr_slave(int this_irq, void *dev_id) > > static const struct i2c_algorithm i2c_dw_algo = { > .functionality = i2c_dw_func, > - .reg_slave = i2c_dw_reg_slave, > - .unreg_slave = i2c_dw_unreg_slave, > + .reg_target = i2c_dw_reg_target, > + .unreg_target = i2c_dw_unreg_target, > }; Acked-by: Jarkko Nikula