Skip to content

Commit be6f48a

Browse files
Uwe Kleine-Königjarkkojs
authored andcommitted
tpm: 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: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
1 parent 2d7f105 commit be6f48a

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

drivers/char/tpm/st33zp24/i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ static struct i2c_driver st33zp24_i2c_driver = {
160160
.of_match_table = of_match_ptr(of_st33zp24_i2c_match),
161161
.acpi_match_table = ACPI_PTR(st33zp24_i2c_acpi_match),
162162
},
163-
.probe_new = st33zp24_i2c_probe,
163+
.probe = st33zp24_i2c_probe,
164164
.remove = st33zp24_i2c_remove,
165165
.id_table = st33zp24_i2c_id
166166
};

drivers/char/tpm/tpm_i2c_atmel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ static SIMPLE_DEV_PM_OPS(i2c_atmel_pm_ops, tpm_pm_suspend, tpm_pm_resume);
203203

204204
static struct i2c_driver i2c_atmel_driver = {
205205
.id_table = i2c_atmel_id,
206-
.probe_new = i2c_atmel_probe,
206+
.probe = i2c_atmel_probe,
207207
.remove = i2c_atmel_remove,
208208
.driver = {
209209
.name = I2C_DRIVER_NAME,

drivers/char/tpm/tpm_i2c_infineon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ static void tpm_tis_i2c_remove(struct i2c_client *client)
716716

717717
static struct i2c_driver tpm_tis_i2c_driver = {
718718
.id_table = tpm_tis_i2c_table,
719-
.probe_new = tpm_tis_i2c_probe,
719+
.probe = tpm_tis_i2c_probe,
720720
.remove = tpm_tis_i2c_remove,
721721
.driver = {
722722
.name = "tpm_i2c_infineon",

drivers/char/tpm/tpm_i2c_nuvoton.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ static SIMPLE_DEV_PM_OPS(i2c_nuvoton_pm_ops, tpm_pm_suspend, tpm_pm_resume);
650650

651651
static struct i2c_driver i2c_nuvoton_driver = {
652652
.id_table = i2c_nuvoton_id,
653-
.probe_new = i2c_nuvoton_probe,
653+
.probe = i2c_nuvoton_probe,
654654
.remove = i2c_nuvoton_remove,
655655
.driver = {
656656
.name = "tpm_i2c_nuvoton",

drivers/char/tpm/tpm_tis_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ static struct i2c_driver tpm_tis_i2c_driver = {
394394
.pm = &tpm_tis_pm,
395395
.of_match_table = of_match_ptr(of_tis_i2c_match),
396396
},
397-
.probe_new = tpm_tis_i2c_probe,
397+
.probe = tpm_tis_i2c_probe,
398398
.remove = tpm_tis_i2c_remove,
399399
.id_table = tpm_tis_i2c_id,
400400
};

drivers/char/tpm/tpm_tis_i2c_cr50.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ static void tpm_cr50_i2c_remove(struct i2c_client *client)
779779
static SIMPLE_DEV_PM_OPS(cr50_i2c_pm, tpm_pm_suspend, tpm_pm_resume);
780780

781781
static struct i2c_driver cr50_i2c_driver = {
782-
.probe_new = tpm_cr50_i2c_probe,
782+
.probe = tpm_cr50_i2c_probe,
783783
.remove = tpm_cr50_i2c_remove,
784784
.driver = {
785785
.name = "cr50_i2c",

0 commit comments

Comments
 (0)