From nobody Thu Nov 14 04:42:27 2024 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 E61D14AEF0 for ; Fri, 22 Mar 2024 13:27:44 +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=1711114067; cv=none; b=kkk97UkGYxy8EjL8MsYSttMpp9w7vQf10CIM9He1SYAkqAPihHabx4ailgU2xBT5KSAVtogFmECa2I1VIQCZuHhaDoZ8VwbxMN/psPQk6wTifzkVxYEyq9KZMbKbkN/qhy6BK5/MelFm2FLnZJRf2jRTP+PpClvGSMm1L5JRJ1M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114067; c=relaxed/simple; bh=yNIpLOfDxIiTSAsTFqiaOJw6yB4FTUpIKCf3oT9NZzg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uflg7av+wTU5zNd2DYfYPextCpTTG4+ZqrFK0oI56uEVm/ZrLh2UJDyHO0vR3xmt6gIOMsgFrGp6RavAIm1awx55NG+C8xWrjjNrx4RdL+/NbUwkYW+3NZxbOtf5jK8zoUMpNFYjSuaur/Ht4PVadDtmVLmWBx6nM4Wl7CLBDSM= 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=j27V4HKx; 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="j27V4HKx" 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=Ti6AdHy5R1zA41nNzipr+t9xh3GImQtOLYTApON+Q2c=; b=j27V4H KxIoXYdsu5hRFQ4CqcnKrQH0oudUDD0KO6oj2ax6Fk6Mdln7q4GGIOGEVy+0fNul V7rUEJYdj2aDzQNHA+B27rMrPaL19zMM2k1V0R/HbgIo0bHgTob2eHTotl4fBH3n FOtOOb6hxiD04M3EvhmSamdiB9+dYyEnsaMDNrQ0lXyUXkXwcGOjSxGQCFOZU/Ww 831ovjvSsYRlU2yOrZHH1o215xV2KHVqPCZlV10FNqdRaEgMiD/ZwK8+2C+ne4Ki /2FqUSe6u14wfMFgLP+HcLNCi2JRo+Vy2VHbhWY7DQDuhKffqssIHjDj/hvkC/di Sd4dQqC44KzIdiYA== Received: (qmail 3872506 invoked from network); 22 Mar 2024 14:27:18 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Mar 2024 14:27:18 +0100 X-UD-Smtp-Session: l3s3148p1@wmtsyD8UpIVehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Elie Morisse , Shyam Sundar S K , Andi Shyti , Codrin Ciubotariu , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Krzysztof Adamski , Benson Leung , Guenter Roeck , Jarkko Nikula , Andy Shevchenko , Mika Westerberg , Jan Dabros , Krzysztof Kozlowski , Alim Akhtar , Jean-Marie Verdun , Nick Hawkins , Yicong Yang , Oleksij Rempel , Pengutronix Kernel Team , Shawn Guo , Sascha Hauer , Fabio Estevam , Paul Cercueil , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Khalil Blaiech , Asmaa Mnebhi , Qii Wang , Matthias Brugger , AngeloGioacchino Del Regno , Linus Walleij , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Ajay Gupta , Peter Korsgaard , Andrew Lunn , Robert Richter , Aaro Koskinen , Janusz Krzysztofik , Tony Lindgren , Vignesh R , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Aneesh Kumar K.V" , "Naveen N. Rao" , Hector Martin , Sven Peter , Alyssa Rosenzweig , Vladimir Zapolskiy , Loic Poulain , Robert Foss , Bjorn Andersson , Konrad Dybcio , Fabrizio Castro , Pierre-Yves MORDRET , Alain Volmat , Maxime Coquelin , Alexandre Torgue , Thierry Reding , Jonathan Hunter , Laxman Dewangan , Dmitry Osipenko , Conghui Chen , Viresh Kumar , Michal Simek , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, chrome-platform@lists.linux.dev, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, linux-mips@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-mediatek@lists.infradead.org, openbmc@lists.ozlabs.org, linux-omap@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, asahi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-tegra@vger.kernel.org, virtualization@lists.linux.dev Subject: [PATCH 64/64] i2c: reword i2c_algorithm in drivers according to newest specification Date: Fri, 22 Mar 2024 14:25:57 +0100 Message-ID: <20240322132619.6389-65-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: quoted-printable Content-Type: text/plain; charset="utf-8" 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 Acked-by: Jarkko Nikula Acked-by: Linus Walleij Acked-by: Nicolas Ferre # for at91 Acked-by: Oleksij Rempel # for i2c-imx.c=20 Reviewed-by: Bjorn Andersson --- 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-amd-mp2-plat.c b/drivers/i2c/busses/i2c= -amd-mp2-plat.c index 112fe2bc5662..eb47de29ec90 100644 --- a/drivers/i2c/busses/i2c-amd-mp2-plat.c +++ b/drivers/i2c/busses/i2c-amd-mp2-plat.c @@ -179,7 +179,7 @@ static u32 i2c_amd_func(struct i2c_adapter *a) } =20 static const struct i2c_algorithm i2c_amd_algorithm =3D { - .master_xfer =3D i2c_amd_xfer, + .xfer =3D i2c_amd_xfer, .functionality =3D i2c_amd_func, }; =20 diff --git a/drivers/i2c/busses/i2c-at91-master.c b/drivers/i2c/busses/i2c-= at91-master.c index d311981d3e60..56223eee7755 100644 --- a/drivers/i2c/busses/i2c-at91-master.c +++ b/drivers/i2c/busses/i2c-at91-master.c @@ -739,7 +739,7 @@ static u32 at91_twi_func(struct i2c_adapter *adapter) } =20 static const struct i2c_algorithm at91_twi_algorithm =3D { - .master_xfer =3D at91_twi_xfer, + .xfer =3D at91_twi_xfer, .functionality =3D at91_twi_func, }; =20 diff --git a/drivers/i2c/busses/i2c-at91-slave.c b/drivers/i2c/busses/i2c-a= t91-slave.c index d6eeea5166c0..00234bf776ab 100644 --- a/drivers/i2c/busses/i2c-at91-slave.c +++ b/drivers/i2c/busses/i2c-at91-slave.c @@ -62,7 +62,7 @@ static irqreturn_t atmel_twi_interrupt_slave(int irq, voi= d *dev_id) return IRQ_HANDLED; } =20 -static int at91_reg_slave(struct i2c_client *slave) +static int at91_reg_target(struct i2c_client *slave) { struct at91_twi_dev *dev =3D i2c_get_adapdata(slave->adapter); =20 @@ -86,7 +86,7 @@ static int at91_reg_slave(struct i2c_client *slave) return 0; } =20 -static int at91_unreg_slave(struct i2c_client *slave) +static int at91_unreg_target(struct i2c_client *slave) { struct at91_twi_dev *dev =3D i2c_get_adapdata(slave->adapter); =20 @@ -111,8 +111,8 @@ static u32 at91_twi_func(struct i2c_adapter *adapter) } =20 static const struct i2c_algorithm at91_twi_algorithm_slave =3D { - .reg_slave =3D at91_reg_slave, - .unreg_slave =3D at91_unreg_slave, + .reg_target =3D at91_reg_target, + .unreg_target =3D at91_unreg_target, .functionality =3D at91_twi_func, }; =20 diff --git a/drivers/i2c/busses/i2c-axxia.c b/drivers/i2c/busses/i2c-axxia.c index a66f7f67b3b8..19545a44dbc9 100644 --- a/drivers/i2c/busses/i2c-axxia.c +++ b/drivers/i2c/busses/i2c-axxia.c @@ -673,7 +673,7 @@ static u32 axxia_i2c_func(struct i2c_adapter *adap) return caps; } =20 -static int axxia_i2c_reg_slave(struct i2c_client *slave) +static int axxia_i2c_reg_target(struct i2c_client *slave) { struct axxia_i2c_dev *idev =3D i2c_get_adapdata(slave->adapter); u32 slv_int_mask =3D SLV_STATUS_RFH; @@ -705,7 +705,7 @@ static int axxia_i2c_reg_slave(struct i2c_client *slave) return 0; } =20 -static int axxia_i2c_unreg_slave(struct i2c_client *slave) +static int axxia_i2c_unreg_target(struct i2c_client *slave) { struct axxia_i2c_dev *idev =3D i2c_get_adapdata(slave->adapter); =20 @@ -721,10 +721,10 @@ static int axxia_i2c_unreg_slave(struct i2c_client *s= lave) } =20 static const struct i2c_algorithm axxia_i2c_algo =3D { - .master_xfer =3D axxia_i2c_xfer, + .xfer =3D axxia_i2c_xfer, .functionality =3D axxia_i2c_func, - .reg_slave =3D axxia_i2c_reg_slave, - .unreg_slave =3D axxia_i2c_unreg_slave, + .reg_target =3D axxia_i2c_reg_target, + .unreg_target =3D axxia_i2c_unreg_target, }; =20 static const struct i2c_adapter_quirks axxia_i2c_quirks =3D { diff --git a/drivers/i2c/busses/i2c-cros-ec-tunnel.c b/drivers/i2c/busses/i= 2c-cros-ec-tunnel.c index 2737fd8abd32..4cd6a364aa3b 100644 --- a/drivers/i2c/busses/i2c-cros-ec-tunnel.c +++ b/drivers/i2c/busses/i2c-cros-ec-tunnel.c @@ -235,7 +235,7 @@ static u32 ec_i2c_functionality(struct i2c_adapter *ada= p) } =20 static const struct i2c_algorithm ec_i2c_algorithm =3D { - .master_xfer =3D ec_i2c_xfer, + .xfer =3D ec_i2c_xfer, .functionality =3D ec_i2c_functionality, }; =20 diff --git a/drivers/i2c/busses/i2c-designware-master.c b/drivers/i2c/busse= s/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 ms= gs[], int num) } =20 static const struct i2c_algorithm i2c_dw_algo =3D { - .master_xfer =3D i2c_dw_xfer, + .xfer =3D i2c_dw_xfer, .functionality =3D i2c_dw_func, }; =20 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; } =20 -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 =3D i2c_get_adapdata(slave->adapter); =20 @@ -83,7 +83,7 @@ static int i2c_dw_reg_slave(struct i2c_client *slave) return 0; } =20 -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 =3D i2c_get_adapdata(slave->adapter); =20 @@ -214,8 +214,8 @@ static irqreturn_t i2c_dw_isr_slave(int this_irq, void = *dev_id) =20 static const struct i2c_algorithm i2c_dw_algo =3D { .functionality =3D i2c_dw_func, - .reg_slave =3D i2c_dw_reg_slave, - .unreg_slave =3D i2c_dw_unreg_slave, + .reg_target =3D i2c_dw_reg_target, + .unreg_target =3D i2c_dw_unreg_target, }; =20 void i2c_dw_configure_slave(struct dw_i2c_dev *dev) diff --git a/drivers/i2c/busses/i2c-diolan-u2c.c b/drivers/i2c/busses/i2c-d= iolan-u2c.c index b48b7888936f..c02459405b26 100644 --- a/drivers/i2c/busses/i2c-diolan-u2c.c +++ b/drivers/i2c/busses/i2c-diolan-u2c.c @@ -414,7 +414,7 @@ static u32 diolan_usb_func(struct i2c_adapter *a) } =20 static const struct i2c_algorithm diolan_usb_algorithm =3D { - .master_xfer =3D diolan_usb_xfer, + .xfer =3D diolan_usb_xfer, .functionality =3D diolan_usb_func, }; =20 diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exyn= os5.c index 385ef9d9e4d4..eda5f06b158d 100644 --- a/drivers/i2c/busses/i2c-exynos5.c +++ b/drivers/i2c/busses/i2c-exynos5.c @@ -852,8 +852,8 @@ static u32 exynos5_i2c_func(struct i2c_adapter *adap) } =20 static const struct i2c_algorithm exynos5_i2c_algorithm =3D { - .master_xfer =3D exynos5_i2c_xfer, - .master_xfer_atomic =3D exynos5_i2c_xfer_atomic, + .xfer =3D exynos5_i2c_xfer, + .xfer_atomic =3D exynos5_i2c_xfer_atomic, .functionality =3D exynos5_i2c_func, }; =20 diff --git a/drivers/i2c/busses/i2c-gxp.c b/drivers/i2c/busses/i2c-gxp.c index efafc0528c44..9cd29c096fe4 100644 --- a/drivers/i2c/busses/i2c-gxp.c +++ b/drivers/i2c/busses/i2c-gxp.c @@ -110,7 +110,7 @@ static void gxp_i2c_start(struct gxp_i2c_drvdata *drvda= ta) writew(value, drvdata->base + GXP_I2CMCMD); } =20 -static int gxp_i2c_master_xfer(struct i2c_adapter *adapter, +static int gxp_i2c_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int num) { int ret; @@ -148,7 +148,7 @@ static u32 gxp_i2c_func(struct i2c_adapter *adap) } =20 #if IS_ENABLED(CONFIG_I2C_SLAVE) -static int gxp_i2c_reg_slave(struct i2c_client *slave) +static int gxp_i2c_reg_target(struct i2c_client *slave) { struct gxp_i2c_drvdata *drvdata =3D i2c_get_adapdata(slave->adapter); =20 @@ -167,7 +167,7 @@ static int gxp_i2c_reg_slave(struct i2c_client *slave) return 0; } =20 -static int gxp_i2c_unreg_slave(struct i2c_client *slave) +static int gxp_i2c_unreg_target(struct i2c_client *slave) { struct gxp_i2c_drvdata *drvdata =3D i2c_get_adapdata(slave->adapter); =20 @@ -184,11 +184,11 @@ static int gxp_i2c_unreg_slave(struct i2c_client *sla= ve) #endif =20 static const struct i2c_algorithm gxp_i2c_algo =3D { - .master_xfer =3D gxp_i2c_master_xfer, + .xfer =3D gxp_i2c_xfer, .functionality =3D gxp_i2c_func, #if IS_ENABLED(CONFIG_I2C_SLAVE) - .reg_slave =3D gxp_i2c_reg_slave, - .unreg_slave =3D gxp_i2c_unreg_slave, + .reg_target =3D gxp_i2c_reg_target, + .unreg_target =3D gxp_i2c_unreg_target, #endif }; =20 diff --git a/drivers/i2c/busses/i2c-hisi.c b/drivers/i2c/busses/i2c-hisi.c index 975c0b1c44de..26072cef8e6e 100644 --- a/drivers/i2c/busses/i2c-hisi.c +++ b/drivers/i2c/busses/i2c-hisi.c @@ -197,7 +197,7 @@ static void hisi_i2c_reset_xfer(struct hisi_i2c_control= ler *ctlr) * wait for the transfer done. The major transfer process is performed * in the IRQ handler. */ -static int hisi_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *= msgs, +static int hisi_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct hisi_i2c_controller *ctlr =3D i2c_get_adapdata(adap); @@ -236,7 +236,7 @@ static u32 hisi_i2c_functionality(struct i2c_adapter *a= dap) } =20 static const struct i2c_algorithm hisi_i2c_algo =3D { - .master_xfer =3D hisi_i2c_master_xfer, + .xfer =3D hisi_i2c_xfer, .functionality =3D hisi_i2c_functionality, }; =20 diff --git a/drivers/i2c/busses/i2c-img-scb.c b/drivers/i2c/busses/i2c-img-= scb.c index f9d4bfef511c..89833330ec25 100644 --- a/drivers/i2c/busses/i2c-img-scb.c +++ b/drivers/i2c/busses/i2c-img-scb.c @@ -1146,7 +1146,7 @@ static u32 img_i2c_func(struct i2c_adapter *adap) } =20 static const struct i2c_algorithm img_i2c_algo =3D { - .master_xfer =3D img_i2c_xfer, + .xfer =3D img_i2c_xfer, .functionality =3D img_i2c_func, }; =20 diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index 3842e527116b..3609d9889304 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c @@ -857,7 +857,7 @@ static void i2c_imx_slave_init(struct imx_i2c_struct *i= 2c_imx) i2c_imx_enable_bus_idle(i2c_imx); } =20 -static int i2c_imx_reg_slave(struct i2c_client *client) +static int i2c_imx_reg_target(struct i2c_client *client) { struct imx_i2c_struct *i2c_imx =3D i2c_get_adapdata(client->adapter); int ret; @@ -880,7 +880,7 @@ static int i2c_imx_reg_slave(struct i2c_client *client) return 0; } =20 -static int i2c_imx_unreg_slave(struct i2c_client *client) +static int i2c_imx_unreg_target(struct i2c_client *client) { struct imx_i2c_struct *i2c_imx =3D i2c_get_adapdata(client->adapter); int ret; @@ -1386,11 +1386,11 @@ static u32 i2c_imx_func(struct i2c_adapter *adapter) } =20 static const struct i2c_algorithm i2c_imx_algo =3D { - .master_xfer =3D i2c_imx_xfer, - .master_xfer_atomic =3D i2c_imx_xfer_atomic, + .xfer =3D i2c_imx_xfer, + .xfer_atomic =3D i2c_imx_xfer_atomic, .functionality =3D i2c_imx_func, - .reg_slave =3D i2c_imx_reg_slave, - .unreg_slave =3D i2c_imx_unreg_slave, + .reg_target =3D i2c_imx_reg_target, + .unreg_target =3D i2c_imx_unreg_target, }; =20 static int i2c_imx_probe(struct platform_device *pdev) diff --git a/drivers/i2c/busses/i2c-jz4780.c b/drivers/i2c/busses/i2c-jz478= 0.c index 55035cca0ae5..6d2c54982bca 100644 --- a/drivers/i2c/busses/i2c-jz4780.c +++ b/drivers/i2c/busses/i2c-jz4780.c @@ -730,7 +730,7 @@ static u32 jz4780_i2c_functionality(struct i2c_adapter = *adap) } =20 static const struct i2c_algorithm jz4780_i2c_algorithm =3D { - .master_xfer =3D jz4780_i2c_xfer, + .xfer =3D jz4780_i2c_xfer, .functionality =3D jz4780_i2c_functionality, }; =20 diff --git a/drivers/i2c/busses/i2c-kempld.c b/drivers/i2c/busses/i2c-kempl= d.c index c3a529a73b5b..4fd799740242 100644 --- a/drivers/i2c/busses/i2c-kempld.c +++ b/drivers/i2c/busses/i2c-kempld.c @@ -276,7 +276,7 @@ static u32 kempld_i2c_func(struct i2c_adapter *adap) } =20 static const struct i2c_algorithm kempld_i2c_algorithm =3D { - .master_xfer =3D kempld_i2c_xfer, + .xfer =3D kempld_i2c_xfer, .functionality =3D kempld_i2c_func, }; =20 diff --git a/drivers/i2c/busses/i2c-meson.c b/drivers/i2c/busses/i2c-meson.c index c7b203cc4434..f5505904aa23 100644 --- a/drivers/i2c/busses/i2c-meson.c +++ b/drivers/i2c/busses/i2c-meson.c @@ -448,8 +448,8 @@ static u32 meson_i2c_func(struct i2c_adapter *adap) } =20 static const struct i2c_algorithm meson_i2c_algorithm =3D { - .master_xfer =3D meson_i2c_xfer, - .master_xfer_atomic =3D meson_i2c_xfer_atomic, + .xfer =3D meson_i2c_xfer, + .xfer_atomic =3D meson_i2c_xfer_atomic, .functionality =3D meson_i2c_func, }; =20 diff --git a/drivers/i2c/busses/i2c-mlxbf.c b/drivers/i2c/busses/i2c-mlxbf.c index b3a73921ab69..cbf5e87ce6e8 100644 --- a/drivers/i2c/busses/i2c-mlxbf.c +++ b/drivers/i2c/busses/i2c-mlxbf.c @@ -2152,7 +2152,7 @@ static s32 mlxbf_i2c_smbus_xfer(struct i2c_adapter *a= dap, u16 addr, return mlxbf_i2c_smbus_start_transaction(priv, &request); } =20 -static int mlxbf_i2c_reg_slave(struct i2c_client *slave) +static int mlxbf_i2c_reg_target(struct i2c_client *slave) { struct mlxbf_i2c_priv *priv =3D i2c_get_adapdata(slave->adapter); struct device *dev =3D &slave->dev; @@ -2174,7 +2174,7 @@ static int mlxbf_i2c_reg_slave(struct i2c_client *sla= ve) return 0; } =20 -static int mlxbf_i2c_unreg_slave(struct i2c_client *slave) +static int mlxbf_i2c_unreg_target(struct i2c_client *slave) { struct mlxbf_i2c_priv *priv =3D i2c_get_adapdata(slave->adapter); struct device *dev =3D &slave->dev; @@ -2232,8 +2232,8 @@ static struct mlxbf_i2c_chip_info mlxbf_i2c_chip[] = =3D { static const struct i2c_algorithm mlxbf_i2c_algo =3D { .smbus_xfer =3D mlxbf_i2c_smbus_xfer, .functionality =3D mlxbf_i2c_functionality, - .reg_slave =3D mlxbf_i2c_reg_slave, - .unreg_slave =3D mlxbf_i2c_unreg_slave, + .reg_target =3D mlxbf_i2c_reg_target, + .unreg_target =3D mlxbf_i2c_unreg_target, }; =20 static struct i2c_adapter_quirks mlxbf_i2c_quirks =3D { diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65x= x.c index a8b5719c3372..4c67f5f94f11 100644 --- a/drivers/i2c/busses/i2c-mt65xx.c +++ b/drivers/i2c/busses/i2c-mt65xx.c @@ -1345,7 +1345,7 @@ static u32 mtk_i2c_functionality(struct i2c_adapter *= adap) } =20 static const struct i2c_algorithm mtk_i2c_algorithm =3D { - .master_xfer =3D mtk_i2c_transfer, + .xfer =3D mtk_i2c_transfer, .functionality =3D mtk_i2c_functionality, }; =20 diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c index 36def0a9c95c..955d275676d1 100644 --- a/drivers/i2c/busses/i2c-mxs.c +++ b/drivers/i2c/busses/i2c-mxs.c @@ -687,7 +687,7 @@ static irqreturn_t mxs_i2c_isr(int this_irq, void *dev_= id) } =20 static const struct i2c_algorithm mxs_i2c_algo =3D { - .master_xfer =3D mxs_i2c_xfer, + .xfer =3D mxs_i2c_xfer, .functionality =3D mxs_i2c_func, }; =20 diff --git a/drivers/i2c/busses/i2c-nomadik.c b/drivers/i2c/busses/i2c-noma= dik.c index b10574d42b7a..41cded3b017e 100644 --- a/drivers/i2c/busses/i2c-nomadik.c +++ b/drivers/i2c/busses/i2c-nomadik.c @@ -934,7 +934,7 @@ static unsigned int nmk_i2c_functionality(struct i2c_ad= apter *adap) } =20 static const struct i2c_algorithm nmk_i2c_algo =3D { - .master_xfer =3D nmk_i2c_xfer, + .xfer =3D nmk_i2c_xfer, .functionality =3D nmk_i2c_functionality }; =20 diff --git a/drivers/i2c/busses/i2c-npcm7xx.c b/drivers/i2c/busses/i2c-npcm= 7xx.c index 2fe68615942e..6259cd70939e 100644 --- a/drivers/i2c/busses/i2c-npcm7xx.c +++ b/drivers/i2c/busses/i2c-npcm7xx.c @@ -1257,7 +1257,7 @@ static irqreturn_t npcm_i2c_int_slave_handler(struct = npcm_i2c *bus) return IRQ_HANDLED; } =20 -static int npcm_i2c_reg_slave(struct i2c_client *client) +static int npcm_i2c_reg_target(struct i2c_client *client) { unsigned long lock_flags; struct npcm_i2c *bus =3D i2c_get_adapdata(client->adapter); @@ -1290,7 +1290,7 @@ static int npcm_i2c_reg_slave(struct i2c_client *clie= nt) return 0; } =20 -static int npcm_i2c_unreg_slave(struct i2c_client *client) +static int npcm_i2c_unreg_target(struct i2c_client *client) { struct npcm_i2c *bus =3D client->adapter->algo_data; unsigned long lock_flags; @@ -2075,7 +2075,7 @@ static bool npcm_i2c_master_start_xmit(struct npcm_i2= c *bus, return true; } =20 -static int npcm_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *= msgs, +static int npcm_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct npcm_i2c *bus =3D container_of(adap, struct npcm_i2c, adap); @@ -2238,11 +2238,11 @@ static const struct i2c_adapter_quirks npcm_i2c_qui= rks =3D { }; =20 static const struct i2c_algorithm npcm_i2c_algo =3D { - .master_xfer =3D npcm_i2c_master_xfer, + .xfer =3D npcm_i2c_xfer, .functionality =3D npcm_i2c_functionality, #if IS_ENABLED(CONFIG_I2C_SLAVE) - .reg_slave =3D npcm_i2c_reg_slave, - .unreg_slave =3D npcm_i2c_unreg_slave, + .reg_target =3D npcm_i2c_reg_target, + .unreg_target =3D npcm_i2c_unreg_target, #endif }; =20 diff --git a/drivers/i2c/busses/i2c-nvidia-gpu.c b/drivers/i2c/busses/i2c-n= vidia-gpu.c index 26622d24bb1b..6d5329d6ddd8 100644 --- a/drivers/i2c/busses/i2c-nvidia-gpu.c +++ b/drivers/i2c/busses/i2c-nvidia-gpu.c @@ -163,7 +163,7 @@ static int gpu_i2c_write(struct gpu_i2c_dev *i2cd, u8 d= ata) return gpu_i2c_check_status(i2cd); } =20 -static int gpu_i2c_master_xfer(struct i2c_adapter *adap, +static int gpu_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct gpu_i2c_dev *i2cd =3D i2c_get_adapdata(adap); @@ -234,7 +234,7 @@ static u32 gpu_i2c_functionality(struct i2c_adapter *ad= ap) } =20 static const struct i2c_algorithm gpu_i2c_algorithm =3D { - .master_xfer =3D gpu_i2c_master_xfer, + .xfer =3D gpu_i2c_xfer, .functionality =3D gpu_i2c_functionality, }; =20 diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocore= s.c index e106af83cef4..17551d33d5b0 100644 --- a/drivers/i2c/busses/i2c-ocores.c +++ b/drivers/i2c/busses/i2c-ocores.c @@ -455,8 +455,8 @@ static u32 ocores_func(struct i2c_adapter *adap) } =20 static struct i2c_algorithm ocores_algorithm =3D { - .master_xfer =3D ocores_xfer, - .master_xfer_atomic =3D ocores_xfer_polling, + .xfer =3D ocores_xfer, + .xfer_atomic =3D ocores_xfer_polling, .functionality =3D ocores_func, }; =20 @@ -689,13 +689,13 @@ static int ocores_i2c_probe(struct platform_device *p= dev) } =20 if (irq =3D=3D -ENXIO) { - ocores_algorithm.master_xfer =3D ocores_xfer_polling; + ocores_algorithm.xfer =3D ocores_xfer_polling; } else { if (irq < 0) return irq; } =20 - if (ocores_algorithm.master_xfer !=3D ocores_xfer_polling) { + if (ocores_algorithm.xfer !=3D ocores_xfer_polling) { ret =3D devm_request_any_context_irq(&pdev->dev, irq, ocores_isr, 0, pdev->name, i2c); diff --git a/drivers/i2c/busses/i2c-octeon-platdrv.c b/drivers/i2c/busses/i= 2c-octeon-platdrv.c index 7d54b3203f71..dc6dff95c68c 100644 --- a/drivers/i2c/busses/i2c-octeon-platdrv.c +++ b/drivers/i2c/busses/i2c-octeon-platdrv.c @@ -122,7 +122,7 @@ static u32 octeon_i2c_functionality(struct i2c_adapter = *adap) } =20 static const struct i2c_algorithm octeon_i2c_algo =3D { - .master_xfer =3D octeon_i2c_xfer, + .xfer =3D octeon_i2c_xfer, .functionality =3D octeon_i2c_functionality, }; =20 diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 42165ef57946..3b9ae8e522e2 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1212,8 +1212,8 @@ omap_i2c_isr_thread(int this_irq, void *dev_id) } =20 static const struct i2c_algorithm omap_i2c_algo =3D { - .master_xfer =3D omap_i2c_xfer_irq, - .master_xfer_atomic =3D omap_i2c_xfer_polling, + .xfer =3D omap_i2c_xfer_irq, + .xfer_atomic =3D omap_i2c_xfer_polling, .functionality =3D omap_i2c_func, }; =20 diff --git a/drivers/i2c/busses/i2c-opal.c b/drivers/i2c/busses/i2c-opal.c index 17ef87d50f7c..b6640d8e77af 100644 --- a/drivers/i2c/busses/i2c-opal.c +++ b/drivers/i2c/busses/i2c-opal.c @@ -70,7 +70,7 @@ static int i2c_opal_send_request(u32 bus_id, struct opal_= i2c_request *req) return rc; } =20 -static int i2c_opal_master_xfer(struct i2c_adapter *adap, struct i2c_msg *= msgs, +static int i2c_opal_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { unsigned long opal_id =3D (unsigned long)adap->algo_data; @@ -179,7 +179,7 @@ static u32 i2c_opal_func(struct i2c_adapter *adapter) } =20 static const struct i2c_algorithm i2c_opal_algo =3D { - .master_xfer =3D i2c_opal_master_xfer, + .xfer =3D i2c_opal_xfer, .smbus_xfer =3D i2c_opal_smbus_xfer, .functionality =3D i2c_opal_func, }; diff --git a/drivers/i2c/busses/i2c-pasemi-core.c b/drivers/i2c/busses/i2c-= pasemi-core.c index bd8becbdeeb2..b07bf8286a47 100644 --- a/drivers/i2c/busses/i2c-pasemi-core.c +++ b/drivers/i2c/busses/i2c-pasemi-core.c @@ -336,7 +336,7 @@ static u32 pasemi_smb_func(struct i2c_adapter *adapter) } =20 static const struct i2c_algorithm smbus_algorithm =3D { - .master_xfer =3D pasemi_i2c_xfer, + .xfer =3D pasemi_i2c_xfer, .smbus_xfer =3D pasemi_smb_xfer, .functionality =3D pasemi_smb_func, }; diff --git a/drivers/i2c/busses/i2c-pnx.c b/drivers/i2c/busses/i2c-pnx.c index a12525b3186b..e31ac2dbbd7b 100644 --- a/drivers/i2c/busses/i2c-pnx.c +++ b/drivers/i2c/busses/i2c-pnx.c @@ -609,7 +609,7 @@ static u32 i2c_pnx_func(struct i2c_adapter *adapter) } =20 static const struct i2c_algorithm pnx_algorithm =3D { - .master_xfer =3D i2c_pnx_xfer, + .xfer =3D i2c_pnx_xfer, .functionality =3D i2c_pnx_func, }; =20 diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index 76f79b68cef8..474abc4f5784 100644 --- a/drivers/i2c/busses/i2c-pxa.c +++ b/drivers/i2c/busses/i2c-pxa.c @@ -1154,11 +1154,11 @@ static u32 i2c_pxa_functionality(struct i2c_adapter= *adap) } =20 static const struct i2c_algorithm i2c_pxa_algorithm =3D { - .master_xfer =3D i2c_pxa_xfer, + .xfer =3D i2c_pxa_xfer, .functionality =3D i2c_pxa_functionality, #ifdef CONFIG_I2C_PXA_SLAVE - .reg_slave =3D i2c_pxa_slave_reg, - .unreg_slave =3D i2c_pxa_slave_unreg, + .reg_target =3D i2c_pxa_slave_reg, + .unreg_target =3D i2c_pxa_slave_unreg, #endif }; =20 @@ -1244,11 +1244,11 @@ static int i2c_pxa_pio_xfer(struct i2c_adapter *ada= p, } =20 static const struct i2c_algorithm i2c_pxa_pio_algorithm =3D { - .master_xfer =3D i2c_pxa_pio_xfer, + .xfer =3D i2c_pxa_pio_xfer, .functionality =3D i2c_pxa_functionality, #ifdef CONFIG_I2C_PXA_SLAVE - .reg_slave =3D i2c_pxa_slave_reg, - .unreg_slave =3D i2c_pxa_slave_unreg, + .reg_target =3D i2c_pxa_slave_reg, + .unreg_target =3D i2c_pxa_slave_unreg, #endif }; =20 diff --git a/drivers/i2c/busses/i2c-qcom-cci.c b/drivers/i2c/busses/i2c-qco= m-cci.c index 414882c57d7f..d8d6d99dd4e7 100644 --- a/drivers/i2c/busses/i2c-qcom-cci.c +++ b/drivers/i2c/busses/i2c-qcom-cci.c @@ -463,7 +463,7 @@ static u32 cci_func(struct i2c_adapter *adap) } =20 static const struct i2c_algorithm cci_algo =3D { - .master_xfer =3D cci_xfer, + .xfer =3D cci_xfer, .functionality =3D cci_func, }; =20 diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qc= om-geni.c index da94df466e83..337a80089f43 100644 --- a/drivers/i2c/busses/i2c-qcom-geni.c +++ b/drivers/i2c/busses/i2c-qcom-geni.c @@ -715,7 +715,7 @@ static u32 geni_i2c_func(struct i2c_adapter *adap) } =20 static const struct i2c_algorithm geni_i2c_algo =3D { - .master_xfer =3D geni_i2c_xfer, + .xfer =3D geni_i2c_xfer, .functionality =3D geni_i2c_func, }; =20 diff --git a/drivers/i2c/busses/i2c-robotfuzz-osif.c b/drivers/i2c/busses/i= 2c-robotfuzz-osif.c index 66dfa211e736..40985a38bec0 100644 --- a/drivers/i2c/busses/i2c-robotfuzz-osif.c +++ b/drivers/i2c/busses/i2c-robotfuzz-osif.c @@ -112,7 +112,7 @@ static u32 osif_func(struct i2c_adapter *adapter) } =20 static const struct i2c_algorithm osif_algorithm =3D { - .master_xfer =3D osif_xfer, + .xfer =3D osif_xfer, .functionality =3D osif_func, }; =20 diff --git a/drivers/i2c/busses/i2c-rzv2m.c b/drivers/i2c/busses/i2c-rzv2m.c index b0bfc96b9ede..60aa0a4e4247 100644 --- a/drivers/i2c/busses/i2c-rzv2m.c +++ b/drivers/i2c/busses/i2c-rzv2m.c @@ -321,7 +321,7 @@ static int rzv2m_i2c_stop_condition(struct rzv2m_i2c_pr= iv *priv) 100, jiffies_to_usecs(priv->adap.timeout)); } =20 -static int rzv2m_i2c_master_xfer_msg(struct rzv2m_i2c_priv *priv, +static int rzv2m_i2c_xfer_msg(struct rzv2m_i2c_priv *priv, struct i2c_msg *msg, int stop) { unsigned int count =3D 0; @@ -351,7 +351,7 @@ static int rzv2m_i2c_master_xfer_msg(struct rzv2m_i2c_p= riv *priv, return ret; } =20 -static int rzv2m_i2c_master_xfer(struct i2c_adapter *adap, +static int rzv2m_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { struct rzv2m_i2c_priv *priv =3D i2c_get_adapdata(adap); @@ -370,7 +370,7 @@ static int rzv2m_i2c_master_xfer(struct i2c_adapter *ad= ap, =20 /* I2C main transfer */ for (i =3D 0; i < num; i++) { - ret =3D rzv2m_i2c_master_xfer_msg(priv, &msgs[i], i =3D=3D (num - 1)); + ret =3D rzv2m_i2c_xfer_msg(priv, &msgs[i], i =3D=3D (num - 1)); if (ret < 0) goto out; } @@ -408,7 +408,7 @@ static const struct i2c_adapter_quirks rzv2m_i2c_quirks= =3D { }; =20 static struct i2c_algorithm rzv2m_i2c_algo =3D { - .master_xfer =3D rzv2m_i2c_master_xfer, + .xfer =3D rzv2m_i2c_xfer, .functionality =3D rzv2m_i2c_func, }; =20 diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2= 410.c index 275f7c42165c..29f5fef39b54 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c @@ -800,8 +800,8 @@ static u32 s3c24xx_i2c_func(struct i2c_adapter *adap) =20 /* i2c bus registration info */ static const struct i2c_algorithm s3c24xx_i2c_algorithm =3D { - .master_xfer =3D s3c24xx_i2c_xfer, - .master_xfer_atomic =3D s3c24xx_i2c_xfer_atomic, + .xfer =3D s3c24xx_i2c_xfer, + .xfer_atomic =3D s3c24xx_i2c_xfer_atomic, .functionality =3D s3c24xx_i2c_func, }; =20 diff --git a/drivers/i2c/busses/i2c-stm32f7.c b/drivers/i2c/busses/i2c-stm3= 2f7.c index 01210452216b..6ecaafc700bc 100644 --- a/drivers/i2c/busses/i2c-stm32f7.c +++ b/drivers/i2c/busses/i2c-stm32f7.c @@ -1065,7 +1065,7 @@ static int stm32f7_i2c_smbus_xfer_msg(struct stm32f7_= i2c_dev *i2c_dev, f7_msg->read_write =3D I2C_SMBUS_READ; break; case I2C_SMBUS_I2C_BLOCK_DATA: - /* Rely on emulated i2c transfer (through master_xfer) */ + /* Rely on emulated i2c transfer (through xfer) */ return -EOPNOTSUPP; default: dev_err(dev, "Unsupported smbus protocol %d\n", f7_msg->size); @@ -1888,7 +1888,7 @@ static void stm32f7_i2c_enable_wakeup(struct stm32f7_= i2c_dev *i2c_dev, } } =20 -static int stm32f7_i2c_reg_slave(struct i2c_client *slave) +static int stm32f7_i2c_reg_target(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev =3D i2c_get_adapdata(slave->adapter); void __iomem *base =3D i2c_dev->base; @@ -1978,7 +1978,7 @@ static int stm32f7_i2c_reg_slave(struct i2c_client *s= lave) return ret; } =20 -static int stm32f7_i2c_unreg_slave(struct i2c_client *slave) +static int stm32f7_i2c_unreg_target(struct i2c_client *slave) { struct stm32f7_i2c_dev *i2c_dev =3D i2c_get_adapdata(slave->adapter); void __iomem *base =3D i2c_dev->base; @@ -2151,12 +2151,12 @@ static u32 stm32f7_i2c_func(struct i2c_adapter *ada= p) } =20 static const struct i2c_algorithm stm32f7_i2c_algo =3D { - .master_xfer =3D stm32f7_i2c_xfer, - .master_xfer_atomic =3D stm32f7_i2c_xfer_atomic, + .xfer =3D stm32f7_i2c_xfer, + .xfer_atomic =3D stm32f7_i2c_xfer_atomic, .smbus_xfer =3D stm32f7_i2c_smbus_xfer, .functionality =3D stm32f7_i2c_func, - .reg_slave =3D stm32f7_i2c_reg_slave, - .unreg_slave =3D stm32f7_i2c_unreg_slave, + .reg_target =3D stm32f7_i2c_reg_target, + .unreg_target =3D stm32f7_i2c_unreg_target, }; =20 static int stm32f7_i2c_probe(struct platform_device *pdev) diff --git a/drivers/i2c/busses/i2c-tegra-bpmp.c b/drivers/i2c/busses/i2c-t= egra-bpmp.c index b0840fa0f53e..dabadbcc6d6a 100644 --- a/drivers/i2c/busses/i2c-tegra-bpmp.c +++ b/drivers/i2c/busses/i2c-tegra-bpmp.c @@ -275,8 +275,8 @@ static u32 tegra_bpmp_i2c_func(struct i2c_adapter *adap= ter) } =20 static const struct i2c_algorithm tegra_bpmp_i2c_algo =3D { - .master_xfer =3D tegra_bpmp_i2c_xfer, - .master_xfer_atomic =3D tegra_bpmp_i2c_xfer_atomic, + .xfer =3D tegra_bpmp_i2c_xfer, + .xfer_atomic =3D tegra_bpmp_i2c_xfer_atomic, .functionality =3D tegra_bpmp_i2c_func, }; =20 diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 920d5a8cbf4c..861b1c9e2627 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -1437,8 +1437,8 @@ static u32 tegra_i2c_func(struct i2c_adapter *adap) } =20 static const struct i2c_algorithm tegra_i2c_algo =3D { - .master_xfer =3D tegra_i2c_xfer, - .master_xfer_atomic =3D tegra_i2c_xfer_atomic, + .xfer =3D tegra_i2c_xfer, + .xfer_atomic =3D tegra_i2c_xfer_atomic, .functionality =3D tegra_i2c_func, }; =20 diff --git a/drivers/i2c/busses/i2c-thunderx-pcidrv.c b/drivers/i2c/busses/= i2c-thunderx-pcidrv.c index a77cd86fe75e..de325c8e18f3 100644 --- a/drivers/i2c/busses/i2c-thunderx-pcidrv.c +++ b/drivers/i2c/busses/i2c-thunderx-pcidrv.c @@ -71,7 +71,7 @@ static u32 thunderx_i2c_functionality(struct i2c_adapter = *adap) } =20 static const struct i2c_algorithm thunderx_i2c_algo =3D { - .master_xfer =3D octeon_i2c_xfer, + .xfer =3D octeon_i2c_xfer, .functionality =3D thunderx_i2c_functionality, }; =20 diff --git a/drivers/i2c/busses/i2c-virtio.c b/drivers/i2c/busses/i2c-virti= o.c index c60ae531ba57..52ba1e0845ca 100644 --- a/drivers/i2c/busses/i2c-virtio.c +++ b/drivers/i2c/busses/i2c-virtio.c @@ -183,7 +183,7 @@ static u32 virtio_i2c_func(struct i2c_adapter *adap) } =20 static struct i2c_algorithm virtio_algorithm =3D { - .master_xfer =3D virtio_i2c_xfer, + .xfer =3D virtio_i2c_xfer, .functionality =3D virtio_i2c_func, }; =20 diff --git a/drivers/i2c/busses/i2c-wmt.c b/drivers/i2c/busses/i2c-wmt.c index 198afee5233c..05ff6228c2dd 100644 --- a/drivers/i2c/busses/i2c-wmt.c +++ b/drivers/i2c/busses/i2c-wmt.c @@ -269,7 +269,7 @@ static u32 wmt_i2c_func(struct i2c_adapter *adap) } =20 static const struct i2c_algorithm wmt_i2c_algo =3D { - .master_xfer =3D wmt_i2c_xfer, + .xfer =3D wmt_i2c_xfer, .functionality =3D wmt_i2c_func, }; =20 diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c index 71391b590ada..7ff36df7319e 100644 --- a/drivers/i2c/busses/i2c-xiic.c +++ b/drivers/i2c/busses/i2c-xiic.c @@ -1193,7 +1193,7 @@ static u32 xiic_func(struct i2c_adapter *adap) } =20 static const struct i2c_algorithm xiic_algorithm =3D { - .master_xfer =3D xiic_xfer, + .xfer =3D xiic_xfer, .functionality =3D xiic_func, }; =20 --=20 2.43.0