From: Jakub Kicinski <kuba@kernel.org>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com,
uwe@kleine-koenig.org,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Subject: [PATCH net-next 06/12] nfc: mrvl: Convert to i2c's .probe_new()
Date: Mon, 21 Nov 2022 11:15:40 -0800 [thread overview]
Message-ID: <20221121191546.1853970-7-kuba@kernel.org> (raw)
In-Reply-To: <20221121191546.1853970-1-kuba@kernel.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/nfcmrvl/i2c.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/nfc/nfcmrvl/i2c.c b/drivers/nfc/nfcmrvl/i2c.c
index 24436c9e54c9..c3ab49df1e35 100644
--- a/drivers/nfc/nfcmrvl/i2c.c
+++ b/drivers/nfc/nfcmrvl/i2c.c
@@ -181,8 +181,7 @@ static int nfcmrvl_i2c_parse_dt(struct device_node *node,
return 0;
}
-static int nfcmrvl_i2c_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int nfcmrvl_i2c_probe(struct i2c_client *client)
{
const struct nfcmrvl_platform_data *pdata;
struct nfcmrvl_i2c_drv_data *drv_data;
@@ -257,7 +256,7 @@ static const struct i2c_device_id nfcmrvl_i2c_id_table[] = {
MODULE_DEVICE_TABLE(i2c, nfcmrvl_i2c_id_table);
static struct i2c_driver nfcmrvl_i2c_driver = {
- .probe = nfcmrvl_i2c_probe,
+ .probe_new = nfcmrvl_i2c_probe,
.id_table = nfcmrvl_i2c_id_table,
.remove = nfcmrvl_i2c_remove,
.driver = {
--
2.38.1
next prev parent reply other threads:[~2022-11-21 19:16 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-21 19:15 [PATCH net-next 00/12] net: Complete conversion to i2c_probe_new Jakub Kicinski
2022-11-21 19:15 ` [PATCH net-next 01/12] net: dsa: lan9303: Convert to i2c's .probe_new() Jakub Kicinski
2022-11-21 19:15 ` [PATCH net-next 02/12] net: dsa: microchip: ksz9477: " Jakub Kicinski
2022-11-21 19:15 ` [PATCH net-next 03/12] net: dsa: xrs700x: " Jakub Kicinski
2022-11-21 19:15 ` [PATCH net-next 04/12] net/mlxsw: " Jakub Kicinski
2022-11-21 22:20 ` kernel test robot
2022-11-22 4:33 ` Jakub Kicinski
2022-11-21 19:15 ` [PATCH net-next 05/12] nfc: microread: " Jakub Kicinski
2022-11-21 19:15 ` Jakub Kicinski [this message]
2022-11-21 19:15 ` [PATCH net-next 07/12] NFC: nxp-nci: " Jakub Kicinski
2022-11-21 19:15 ` [PATCH net-next 08/12] nfc: pn533: " Jakub Kicinski
2022-11-21 19:15 ` [PATCH net-next 09/12] nfc: pn544: " Jakub Kicinski
2022-11-21 19:15 ` [PATCH net-next 10/12] nfc: s3fwrn5: " Jakub Kicinski
2022-11-21 19:15 ` [PATCH net-next 11/12] nfc: st-nci: " Jakub Kicinski
2022-11-21 19:15 ` [PATCH net-next 12/12] nfc: st21nfca: i2c: " Jakub Kicinski
2022-11-22 9:38 ` [PATCH net-next 00/12] net: Complete conversion to i2c_probe_new Uwe Kleine-König
2022-11-22 18:40 ` Jakub Kicinski
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=20221121191546.1853970-7-kuba@kernel.org \
--to=kuba@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=u.kleine-koenig@pengutronix.de \
--cc=uwe@kleine-koenig.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.