nfc: Switch i2c drivers back to use .probe()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sat, 20 May 2023 17:21:04 +0000 (19:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 May 2023 10:41:57 +0000 (11:41 +0100)
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.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/fdp/i2c.c
drivers/nfc/microread/i2c.c
drivers/nfc/nfcmrvl/i2c.c
drivers/nfc/nxp-nci/i2c.c
drivers/nfc/pn533/i2c.c
drivers/nfc/pn544/i2c.c
drivers/nfc/s3fwrn5/i2c.c
drivers/nfc/st-nci/i2c.c
drivers/nfc/st21nfca/i2c.c

index 1e0f2297f9c665820aabb2093ebd3c71fc8325aa..c1896a1d978cdcadfbb6699144a50fd08fe934d9 100644 (file)
@@ -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);
index e72b358a2a1254f88b581cfb1c2c2a16aa9ff918..642df4e0ce24a6697d76e7729fd9683f2907b9db 100644 (file)
@@ -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,
 };
index 164e2ab859fd9deba8f422e18d6eac74abf9f94d..74553134c1b1892d67d1439a8c7a29f54885edb7 100644 (file)
@@ -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 = {
index d4c299be794994c824d01d5b0e8149e1ef070e55..baddaf242d1856d63205b8d08ae857e8614a06b6 100644 (file)
@@ -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,
 };
index 1503a98f0405ab8e2a71d3f96ceea9dcaec75f9a..438ab9553f7a185180ec58495aa26d4f958eaff8 100644 (file)
@@ -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,
 };
index 8b0d910bee06cd7adcd7d0cb1e4f89ced2a1fc5f..3f6d74832bac3b3d059fce0e8a489a35e2bce8da 100644 (file)
@@ -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,
 };
index 2517ae71f9a4a94f4c6a753e463bc3f127da3650..720d4a72493c8096d7dea96d19b46e68f9cf5571 100644 (file)
@@ -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,
 };
index 6b5eed8a1fbe133b9f5571139c484fda4f6cad3b..d20a337e90b45631330771640b2ad8610dcd411e 100644 (file)
@@ -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,
 };
index 55f7a2391bb1abebb910a2a045e64506ae7010f5..064a63db288bdc0bd0b5de2b5dea23d6f84c36fb 100644 (file)
@@ -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,
 };