nfc: Switch i2c drivers back to use .probe()
Subsystems (5)
PATCH 1/1 nfc: Switch i2c drivers back to use .probe()
After commit b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new() call-back type"), all drivers being converted to .probe_new() and then 03c835f498b5 ("i2c: Switch .probe() to not take an id parameter") convert back to (the new) .probe() to be able to eventually drop .probe_new() from struct i2c_driver.
---
Hello,
this patch was generated using coccinelle, but I aligned the result to the per-file indention.
This is one patch for the whole iio subsystem. if you want it split per driver for improved patch count numbers, please tell me.
This currently fits on top of 6.4-rc1 and next/master. If you apply it somewhere else and get conflicts, feel free to just drop the files with conflicts from this patch and apply anyhow. I'll care about the fallout later then.
Best regards
Uwe
drivers/nfc/fdp/i2c.c | 2 +- drivers/nfc/microread/i2c.c | 2 +- drivers/nfc/nfcmrvl/i2c.c | 2 +- drivers/nfc/nxp-nci/i2c.c | 2 +- drivers/nfc/pn533/i2c.c | 2 +- drivers/nfc/pn544/i2c.c | 2 +- drivers/nfc/s3fwrn5/i2c.c | 2 +- drivers/nfc/st-nci/i2c.c | 2 +- drivers/nfc/st21nfca/i2c.c | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-)
drivers/nfc/fdp/i2c.c +1 -1
@@ -359,7 +359,7 @@ static struct i2c_driver fdp_nci_i2c_driver = { .name = FDP_I2C_DRIVER_NAME, .acpi_match_table = fdp_nci_i2c_acpi_match, }, - .probe_new = fdp_nci_i2c_probe, + .probe = fdp_nci_i2c_probe, .remove = fdp_nci_i2c_remove, };module_i2c_driver (fdp_nci_i2c_driver);
drivers/nfc/microread/i2c.c +1 -1
@@ -286,7 +286,7 @@ static struct i2c_driver microread_i2c_driver = { .driver = { .name = MICROREAD_I2C_DRIVER_NAME, }, - .probe_new = microread_i2c_probe, + .probe = microread_i2c_probe, .remove = microread_i2c_remove, .id_table = microread_i2c_id, };
drivers/nfc/nfcmrvl/i2c.c +1 -1
@@ -258,7 +258,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_new = nfcmrvl_i2c_probe, + .probe = nfcmrvl_i2c_probe, .id_table = nfcmrvl_i2c_id_table, .remove = nfcmrvl_i2c_remove, .driver = {
drivers/nfc/nxp-nci/i2c.c +1 -1
@@ -348,7 +348,7 @@ static struct i2c_driver nxp_nci_i2c_driver = { .acpi_match_table = ACPI_PTR(acpi_id), .of_match_table = of_nxp_nci_i2c_match, }, - .probe_new = nxp_nci_i2c_probe, + .probe = nxp_nci_i2c_probe, .id_table = nxp_nci_i2c_id_table, .remove = nxp_nci_i2c_remove, };
drivers/nfc/pn533/i2c.c +1 -1
@@ -259,7 +259,7 @@ static struct i2c_driver pn533_i2c_driver = { .name = PN533_I2C_DRIVER_NAME, .of_match_table = of_match_ptr(of_pn533_i2c_match), }, - .probe_new = pn533_i2c_probe, + .probe = pn533_i2c_probe, .id_table = pn533_i2c_id_table, .remove = pn533_i2c_remove, };
drivers/nfc/pn544/i2c.c +1 -1
@@ -953,7 +953,7 @@ static struct i2c_driver pn544_hci_i2c_driver = { .of_match_table = of_match_ptr(of_pn544_i2c_match), .acpi_match_table = ACPI_PTR(pn544_hci_i2c_acpi_match), }, - .probe_new = pn544_hci_i2c_probe, + .probe = pn544_hci_i2c_probe, .id_table = pn544_hci_i2c_id_table, .remove = pn544_hci_i2c_remove, };
drivers/nfc/s3fwrn5/i2c.c +1 -1
@@ -261,7 +261,7 @@ static struct i2c_driver s3fwrn5_i2c_driver = { .name = S3FWRN5_I2C_DRIVER_NAME, .of_match_table = of_match_ptr(of_s3fwrn5_i2c_match), }, - .probe_new = s3fwrn5_i2c_probe, + .probe = s3fwrn5_i2c_probe, .remove = s3fwrn5_i2c_remove, .id_table = s3fwrn5_i2c_id_table, };
drivers/nfc/st-nci/i2c.c +1 -1
@@ -283,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_new = st_nci_i2c_probe, + .probe = st_nci_i2c_probe, .id_table = st_nci_i2c_id_table, .remove = st_nci_i2c_remove, };
drivers/nfc/st21nfca/i2c.c +1 -1
@@ -597,7 +597,7 @@ static struct i2c_driver st21nfca_hci_i2c_driver = { .of_match_table = of_match_ptr(of_st21nfca_i2c_match), .acpi_match_table = ACPI_PTR(st21nfca_hci_i2c_acpi_match), }, - .probe_new = st21nfca_hci_i2c_probe, + .probe = st21nfca_hci_i2c_probe, .id_table = st21nfca_hci_i2c_id_table, .remove = st21nfca_hci_i2c_remove, };
base-commit: ac9a78681b921877518763ba0e89202254349d1b
Signature · 1 line
2.39.2
Quoted 7 lines · On Sat, 20 May 2023 19:21:04 +0200 Uwe Kleine-König…
After commit
b8a1a4cd5a98("i2c: Provide a temporary .probe_new() call-back type"), all drivers being converted to .probe_new() and then03c835f498b5("i2c: Switch .probe() to not take an id parameter") convert back to (the new) .probe() to be able to eventually drop .probe_new() from structi2c_driver.Signed-off-by Uwe Kleine-König <[email protected]>
Signature · 3 lines
Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Quoted 9 lines · On Sat, 20 May 2023 19:21:04 +0200 you wrote:
After commit
b8a1a4cd5a98("i2c: Provide a temporary .probe_new() call-back type"), all drivers being converted to .probe_new() and then03c835f498b5("i2c: Switch .probe() to not take an id parameter") convert back to (the new) .probe() to be able to eventually drop .probe_new() from structi2c_driver.Signed-off-by Uwe Kleine-König <[email protected]>[...]
Here is the summary with links:
- [net-next] nfc: Switch i2c drivers back to use .probe()
https://git.kernel.org/netdev/net-next/c/efc3001f8b44
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Quoted 6 lines · Uwe Kleine-König
After commit
b8a1a4cd5a98("i2c: Provide a temporary .probe_new() call-back type"), all drivers being converted to .probe_new() and then03c835f498b5("i2c: Switch .probe() to not take an id parameter") convert back to (the new) .probe() to be able to eventually drop .probe_new() from structi2c_driver.
Quoted 8 lines
Signed-off-by Uwe Kleine-König <[email protected]>---
Hello,this patch was generated using coccinelle, but I aligned the result to the per-file indention.
This is one patch for the whole iio subsystem. if you want it split per
s/iio/nfc/
Quoted 20 lines
driver for improved patch count numbers, please tell me.
This currently fits on top of 6.4-rc1 and next/master. If you apply it somewhere else and get conflicts, feel free to just drop the files with conflicts from this patch and apply anyhow. I'll care about the fallout later then.
Best regards
Uwedrivers/nfc/fdp/i2c.c | 2 +- drivers/nfc/microread/i2c.c | 2 +- drivers/nfc/nfcmrvl/i2c.c | 2 +- drivers/nfc/nxp-nci/i2c.c | 2 +- drivers/nfc/pn533/i2c.c | 2 +- drivers/nfc/pn544/i2c.c | 2 +- drivers/nfc/s3fwrn5/i2c.c | 2 +- drivers/nfc/st-nci/i2c.c | 2 +- drivers/nfc/st21nfca/i2c.c | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-)
Quoted 1 line
(...)
Signature · 2 lines
Jean Delvare SUSE L3 Support
Hello Jean,
Quoted 11 lines · Jean Delvare
Quoted 10 lines · Uwe Kleine-König
After commit
b8a1a4cd5a98("i2c: Provide a temporary .probe_new() call-back type"), all drivers being converted to .probe_new() and then03c835f498b5("i2c: Switch .probe() to not take an id parameter") convert back to (the new) .probe() to be able to eventually drop .probe_new() from structi2c_driver.Signed-off-by Uwe Kleine-König <[email protected]>---
Hello,
Quoted 6 lines
Quoted 4 lines
this patch was generated using coccinelle, but I aligned the result to the per-file indention.
This is one patch for the whole iio subsystem. if you want it split per
s/iio/nfc/
Yeah, copy&paste failure. I noticed after sending out the patch, but as it's only in a part of the mail that doesn't make it into git I didn't care to point it out.
Quoted 22 lines
Quoted 20 lines
driver for improved patch count numbers, please tell me.
This currently fits on top of 6.4-rc1 and next/master. If you apply it somewhere else and get conflicts, feel free to just drop the files with conflicts from this patch and apply anyhow. I'll care about the fallout later then.
Best regards
Uwedrivers/nfc/fdp/i2c.c | 2 +- drivers/nfc/microread/i2c.c | 2 +- drivers/nfc/nfcmrvl/i2c.c | 2 +- drivers/nfc/nxp-nci/i2c.c | 2 +- drivers/nfc/pn533/i2c.c | 2 +- drivers/nfc/pn544/i2c.c | 2 +- drivers/nfc/s3fwrn5/i2c.c | 2 +- drivers/nfc/st-nci/i2c.c | 2 +- drivers/nfc/st21nfca/i2c.c | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-)Quoted 1 line
(...)
Quoted 1 line
Reviewed-by Jean Delvare <[email protected]>
Thanks, but note that davem already applied the patch, so your tag probably won't make it in.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |