From: "Uwe Kleine-König" <uwe@kleine-koenig.org>
To: Angel Iglesias <ang.iglesiasg@gmail.com>,
Lee Jones <lee.jones@linaro.org>,
Grant Likely <grant.likely@linaro.org>,
Wolfram Sang <wsa@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Hans Verkuil <hverkuil-cisco@xs4all.nl>,
Adrien Grassein <adrien.grassein@gmail.com>,
Luca Ceresoli <luca.ceresoli@bootlin.com>
Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 507/606] nfc: st-nci: Convert to i2c's .probe_new()
Date: Fri, 18 Nov 2022 23:44:01 +0100 [thread overview]
Message-ID: <20221118224540.619276-508-uwe@kleine-koenig.org> (raw)
In-Reply-To: <20221118224540.619276-1-uwe@kleine-koenig.org>
From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
drivers/nfc/st-nci/i2c.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/nfc/st-nci/i2c.c b/drivers/nfc/st-nci/i2c.c
index 89fa24d71bef..6b5eed8a1fbe 100644
--- a/drivers/nfc/st-nci/i2c.c
+++ b/drivers/nfc/st-nci/i2c.c
@@ -195,8 +195,7 @@ static const struct acpi_gpio_mapping acpi_st_nci_gpios[] = {
{},
};
-static int st_nci_i2c_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int st_nci_i2c_probe(struct i2c_client *client)
{
struct device *dev = &client->dev;
struct st_nci_i2c_phy *phy;
@@ -284,7 +283,7 @@ static struct i2c_driver st_nci_i2c_driver = {
.of_match_table = of_match_ptr(of_st_nci_i2c_match),
.acpi_match_table = ACPI_PTR(st_nci_i2c_acpi_match),
},
- .probe = st_nci_i2c_probe,
+ .probe_new = st_nci_i2c_probe,
.id_table = st_nci_i2c_id_table,
.remove = st_nci_i2c_remove,
};
--
2.38.1
next prev parent reply other threads:[~2022-11-18 23:55 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-18 22:35 [PATCH 000/606] i2c: Complete conversion to i2c_probe_new Uwe Kleine-König
2022-11-18 22:43 ` [PATCH 497/606] net: dsa: lan9303: Convert to i2c's .probe_new() Uwe Kleine-König
2022-11-18 22:43 ` [PATCH 498/606] net: dsa: microchip: ksz9477: " Uwe Kleine-König
2022-11-18 22:43 ` [PATCH 499/606] net: dsa: xrs700x: " Uwe Kleine-König
2022-11-18 22:43 ` [PATCH 500/606] net/mlx5: " Uwe Kleine-König
2022-11-20 7:07 ` Ido Schimmel
2022-11-20 20:37 ` Uwe Kleine-König
2022-11-18 22:43 ` [PATCH 501/606] nfc: microread: " Uwe Kleine-König
2022-11-18 22:43 ` [PATCH 502/606] nfc: mrvl: " Uwe Kleine-König
2022-11-18 22:43 ` [PATCH 503/606] NFC: nxp-nci: " Uwe Kleine-König
2022-11-18 22:43 ` [PATCH 504/606] nfc: pn533: " Uwe Kleine-König
2022-11-18 22:43 ` [PATCH 505/606] nfc: pn544: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 506/606] nfc: s3fwrn5: " Uwe Kleine-König
2022-11-18 22:44 ` Uwe Kleine-König [this message]
2022-11-18 22:44 ` [PATCH 508/606] nfc: st21nfca: i2c: " Uwe Kleine-König
2022-11-19 6:50 ` [PATCH 000/606] i2c: Complete conversion to i2c_probe_new patchwork-bot+chrome-platform
2022-11-19 6:50 ` patchwork-bot+chrome-platform
2022-11-19 11:10 ` Wolfram Sang
2022-11-20 19:43 ` Sebastian Reichel
2022-11-21 9:53 ` Lee Jones
2022-11-22 18:58 ` Jonathan Cameron
2022-11-22 20:16 ` Uwe Kleine-König
2022-11-26 15:43 ` Andy Shevchenko
2022-12-09 12:00 ` (subset) " Robert Foss
2022-12-12 16:36 ` Robert Foss
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221118224540.619276-508-uwe@kleine-koenig.org \
--to=uwe@kleine-koenig.org \
--cc=adrien.grassein@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=ang.iglesiasg@gmail.com \
--cc=grant.likely@linaro.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=kernel@pengutronix.de \
--cc=krzysztof.kozlowski@linaro.org \
--cc=lee.jones@linaro.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luca.ceresoli@bootlin.com \
--cc=netdev@vger.kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
--cc=wsa@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).