Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

macintosh: 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.

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

authored by

Uwe Kleine-König and committed by
Michael Ellerman
922db7c5 a03b1a0b

+9 -9
+1 -1
drivers/macintosh/ams/ams-i2c.c
··· 69 69 .driver = { 70 70 .name = "ams", 71 71 }, 72 - .probe_new = ams_i2c_probe, 72 + .probe = ams_i2c_probe, 73 73 .remove = ams_i2c_remove, 74 74 .id_table = ams_id, 75 75 };
+1 -1
drivers/macintosh/therm_adt746x.c
··· 598 598 .driver = { 599 599 .name = "therm_adt746x", 600 600 }, 601 - .probe_new = probe_thermostat, 601 + .probe = probe_thermostat, 602 602 .remove = remove_thermostat, 603 603 .id_table = therm_adt746x_id, 604 604 };
+1 -1
drivers/macintosh/therm_windtunnel.c
··· 442 442 .driver = { 443 443 .name = "therm_windtunnel", 444 444 }, 445 - .probe_new = do_probe, 445 + .probe = do_probe, 446 446 .remove = do_remove, 447 447 .id_table = therm_windtunnel_id, 448 448 };
+1 -1
drivers/macintosh/windfarm_ad7417_sensor.c
··· 320 320 .name = "wf_ad7417", 321 321 .of_match_table = wf_ad7417_of_id, 322 322 }, 323 - .probe_new = wf_ad7417_probe, 323 + .probe = wf_ad7417_probe, 324 324 .remove = wf_ad7417_remove, 325 325 .id_table = wf_ad7417_id, 326 326 };
+1 -1
drivers/macintosh/windfarm_fcu_controls.c
··· 589 589 .name = "wf_fcu", 590 590 .of_match_table = wf_fcu_of_id, 591 591 }, 592 - .probe_new = wf_fcu_probe, 592 + .probe = wf_fcu_probe, 593 593 .remove = wf_fcu_remove, 594 594 .id_table = wf_fcu_id, 595 595 };
+1 -1
drivers/macintosh/windfarm_lm75_sensor.c
··· 177 177 .name = "wf_lm75", 178 178 .of_match_table = wf_lm75_of_id, 179 179 }, 180 - .probe_new = wf_lm75_probe, 180 + .probe = wf_lm75_probe, 181 181 .remove = wf_lm75_remove, 182 182 .id_table = wf_lm75_id, 183 183 };
+1 -1
drivers/macintosh/windfarm_lm87_sensor.c
··· 172 172 .name = "wf_lm87", 173 173 .of_match_table = wf_lm87_of_id, 174 174 }, 175 - .probe_new = wf_lm87_probe, 175 + .probe = wf_lm87_probe, 176 176 .remove = wf_lm87_remove, 177 177 .id_table = wf_lm87_id, 178 178 };
+1 -1
drivers/macintosh/windfarm_max6690_sensor.c
··· 128 128 .name = "wf_max6690", 129 129 .of_match_table = wf_max6690_of_id, 130 130 }, 131 - .probe_new = wf_max6690_probe, 131 + .probe = wf_max6690_probe, 132 132 .remove = wf_max6690_remove, 133 133 .id_table = wf_max6690_id, 134 134 };
+1 -1
drivers/macintosh/windfarm_smu_sat.c
··· 349 349 .name = "wf_smu_sat", 350 350 .of_match_table = wf_sat_of_id, 351 351 }, 352 - .probe_new = wf_sat_probe, 352 + .probe = wf_sat_probe, 353 353 .remove = wf_sat_remove, 354 354 .id_table = wf_sat_id, 355 355 };