Skip to content

Commit efc3001

Browse files
Uwe Kleine-Königdavem330
authored andcommitted
nfc: Switch i2c drivers back to use .probe()
After commit b8a1a4c ("i2c: Provide a temporary .probe_new() call-back type"), all drivers being converted to .probe_new() and then 03c835f ("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 <[email protected]> Reviewed-by: Luca Ceresoli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fe79bd6 commit efc3001

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

drivers/nfc/fdp/i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ static struct i2c_driver fdp_nci_i2c_driver = {
359359
.name = FDP_I2C_DRIVER_NAME,
360360
.acpi_match_table = fdp_nci_i2c_acpi_match,
361361
},
362-
.probe_new = fdp_nci_i2c_probe,
362+
.probe = fdp_nci_i2c_probe,
363363
.remove = fdp_nci_i2c_remove,
364364
};
365365
module_i2c_driver(fdp_nci_i2c_driver);

drivers/nfc/microread/i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static struct i2c_driver microread_i2c_driver = {
286286
.driver = {
287287
.name = MICROREAD_I2C_DRIVER_NAME,
288288
},
289-
.probe_new = microread_i2c_probe,
289+
.probe = microread_i2c_probe,
290290
.remove = microread_i2c_remove,
291291
.id_table = microread_i2c_id,
292292
};

drivers/nfc/nfcmrvl/i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ static const struct i2c_device_id nfcmrvl_i2c_id_table[] = {
258258
MODULE_DEVICE_TABLE(i2c, nfcmrvl_i2c_id_table);
259259

260260
static struct i2c_driver nfcmrvl_i2c_driver = {
261-
.probe_new = nfcmrvl_i2c_probe,
261+
.probe = nfcmrvl_i2c_probe,
262262
.id_table = nfcmrvl_i2c_id_table,
263263
.remove = nfcmrvl_i2c_remove,
264264
.driver = {

drivers/nfc/nxp-nci/i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ static struct i2c_driver nxp_nci_i2c_driver = {
348348
.acpi_match_table = ACPI_PTR(acpi_id),
349349
.of_match_table = of_nxp_nci_i2c_match,
350350
},
351-
.probe_new = nxp_nci_i2c_probe,
351+
.probe = nxp_nci_i2c_probe,
352352
.id_table = nxp_nci_i2c_id_table,
353353
.remove = nxp_nci_i2c_remove,
354354
};

drivers/nfc/pn533/i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ static struct i2c_driver pn533_i2c_driver = {
259259
.name = PN533_I2C_DRIVER_NAME,
260260
.of_match_table = of_match_ptr(of_pn533_i2c_match),
261261
},
262-
.probe_new = pn533_i2c_probe,
262+
.probe = pn533_i2c_probe,
263263
.id_table = pn533_i2c_id_table,
264264
.remove = pn533_i2c_remove,
265265
};

drivers/nfc/pn544/i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ static struct i2c_driver pn544_hci_i2c_driver = {
953953
.of_match_table = of_match_ptr(of_pn544_i2c_match),
954954
.acpi_match_table = ACPI_PTR(pn544_hci_i2c_acpi_match),
955955
},
956-
.probe_new = pn544_hci_i2c_probe,
956+
.probe = pn544_hci_i2c_probe,
957957
.id_table = pn544_hci_i2c_id_table,
958958
.remove = pn544_hci_i2c_remove,
959959
};

drivers/nfc/s3fwrn5/i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ static struct i2c_driver s3fwrn5_i2c_driver = {
261261
.name = S3FWRN5_I2C_DRIVER_NAME,
262262
.of_match_table = of_match_ptr(of_s3fwrn5_i2c_match),
263263
},
264-
.probe_new = s3fwrn5_i2c_probe,
264+
.probe = s3fwrn5_i2c_probe,
265265
.remove = s3fwrn5_i2c_remove,
266266
.id_table = s3fwrn5_i2c_id_table,
267267
};

drivers/nfc/st-nci/i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ static struct i2c_driver st_nci_i2c_driver = {
283283
.of_match_table = of_match_ptr(of_st_nci_i2c_match),
284284
.acpi_match_table = ACPI_PTR(st_nci_i2c_acpi_match),
285285
},
286-
.probe_new = st_nci_i2c_probe,
286+
.probe = st_nci_i2c_probe,
287287
.id_table = st_nci_i2c_id_table,
288288
.remove = st_nci_i2c_remove,
289289
};

drivers/nfc/st21nfca/i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ static struct i2c_driver st21nfca_hci_i2c_driver = {
597597
.of_match_table = of_match_ptr(of_st21nfca_i2c_match),
598598
.acpi_match_table = ACPI_PTR(st21nfca_hci_i2c_acpi_match),
599599
},
600-
.probe_new = st21nfca_hci_i2c_probe,
600+
.probe = st21nfca_hci_i2c_probe,
601601
.id_table = st21nfca_hci_i2c_id_table,
602602
.remove = st21nfca_hci_i2c_remove,
603603
};

0 commit comments

Comments
 (0)