macintosh: Switch i2c drivers back to use .probe()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 23 May 2023 19:50:53 +0000 (21:50 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Jun 2023 02:46:41 +0000 (12:46 +1000)
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: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230523195053.464138-1-u.kleine-koenig@pengutronix.de
drivers/macintosh/ams/ams-i2c.c
drivers/macintosh/therm_adt746x.c
drivers/macintosh/therm_windtunnel.c
drivers/macintosh/windfarm_ad7417_sensor.c
drivers/macintosh/windfarm_fcu_controls.c
drivers/macintosh/windfarm_lm75_sensor.c
drivers/macintosh/windfarm_lm87_sensor.c
drivers/macintosh/windfarm_max6690_sensor.c
drivers/macintosh/windfarm_smu_sat.c

index a4a1035..f9bfe84 100644 (file)
@@ -69,7 +69,7 @@ static struct i2c_driver ams_i2c_driver = {
        .driver = {
                .name   = "ams",
        },
-       .probe_new      = ams_i2c_probe,
+       .probe          = ams_i2c_probe,
        .remove         = ams_i2c_remove,
        .id_table       = ams_id,
 };
index 384b87d..53ea56b 100644 (file)
@@ -598,7 +598,7 @@ static struct i2c_driver thermostat_driver = {
        .driver = {
                .name   = "therm_adt746x",
        },
-       .probe_new = probe_thermostat,
+       .probe = probe_thermostat,
        .remove = remove_thermostat,
        .id_table = therm_adt746x_id,
 };
index 22b15ef..18a9824 100644 (file)
@@ -442,7 +442,7 @@ static struct i2c_driver g4fan_driver = {
        .driver = {
                .name   = "therm_windtunnel",
        },
-       .probe_new      = do_probe,
+       .probe          = do_probe,
        .remove         = do_remove,
        .id_table       = therm_windtunnel_id,
 };
index 33b4723..49ce37f 100644 (file)
@@ -320,7 +320,7 @@ static struct i2c_driver wf_ad7417_driver = {
                .name   = "wf_ad7417",
                .of_match_table = wf_ad7417_of_id,
        },
-       .probe_new      = wf_ad7417_probe,
+       .probe          = wf_ad7417_probe,
        .remove         = wf_ad7417_remove,
        .id_table       = wf_ad7417_id,
 };
index e027d88..603ef6c 100644 (file)
@@ -589,7 +589,7 @@ static struct i2c_driver wf_fcu_driver = {
                .name   = "wf_fcu",
                .of_match_table = wf_fcu_of_id,
        },
-       .probe_new      = wf_fcu_probe,
+       .probe          = wf_fcu_probe,
        .remove         = wf_fcu_remove,
        .id_table       = wf_fcu_id,
 };
index 9c6febc..48dbdb2 100644 (file)
@@ -177,7 +177,7 @@ static struct i2c_driver wf_lm75_driver = {
                .name   = "wf_lm75",
                .of_match_table = wf_lm75_of_id,
        },
-       .probe_new      = wf_lm75_probe,
+       .probe          = wf_lm75_probe,
        .remove         = wf_lm75_remove,
        .id_table       = wf_lm75_id,
 };
index f37a32c..975361c 100644 (file)
@@ -172,7 +172,7 @@ static struct i2c_driver wf_lm87_driver = {
                .name   = "wf_lm87",
                .of_match_table = wf_lm87_of_id,
        },
-       .probe_new      = wf_lm87_probe,
+       .probe          = wf_lm87_probe,
        .remove         = wf_lm87_remove,
        .id_table       = wf_lm87_id,
 };
index 6c5ab65..02856d1 100644 (file)
@@ -128,7 +128,7 @@ static struct i2c_driver wf_max6690_driver = {
                .name           = "wf_max6690",
                .of_match_table = wf_max6690_of_id,
        },
-       .probe_new      = wf_max6690_probe,
+       .probe          = wf_max6690_probe,
        .remove         = wf_max6690_remove,
        .id_table       = wf_max6690_id,
 };
index 089f274..50baa06 100644 (file)
@@ -349,7 +349,7 @@ static struct i2c_driver wf_sat_driver = {
                .name           = "wf_smu_sat",
                .of_match_table = wf_sat_of_id,
        },
-       .probe_new      = wf_sat_probe,
+       .probe          = wf_sat_probe,
        .remove         = wf_sat_remove,
        .id_table       = wf_sat_id,
 };