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

Configure Feed

Select the types of activity you want to include in your feed.

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

While touching hd3ss3220.c fix a minor white space issue in the
definition of struct hd3ss3220_driver.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230517181528.167115-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Uwe Kleine-König and committed by
Greg Kroah-Hartman
7126a2ae 31243875

+19 -19
+1 -1
drivers/usb/misc/usb251xb.c
··· 746 746 .of_match_table = usb251xb_of_match, 747 747 .pm = &usb251xb_pm_ops, 748 748 }, 749 - .probe_new = usb251xb_i2c_probe, 749 + .probe = usb251xb_i2c_probe, 750 750 .id_table = usb251xb_id, 751 751 }; 752 752
+1 -1
drivers/usb/misc/usb3503.c
··· 411 411 .pm = pm_ptr(&usb3503_i2c_pm_ops), 412 412 .of_match_table = of_match_ptr(usb3503_of_match), 413 413 }, 414 - .probe_new = usb3503_i2c_probe, 414 + .probe = usb3503_i2c_probe, 415 415 .remove = usb3503_i2c_remove, 416 416 .id_table = usb3503_id, 417 417 };
+1 -1
drivers/usb/misc/usb4604.c
··· 154 154 .pm = pm_ptr(&usb4604_i2c_pm_ops), 155 155 .of_match_table = of_match_ptr(usb4604_of_match), 156 156 }, 157 - .probe_new = usb4604_i2c_probe, 157 + .probe = usb4604_i2c_probe, 158 158 .id_table = usb4604_id, 159 159 }; 160 160 module_i2c_driver(usb4604_i2c_driver);
+1 -1
drivers/usb/phy/phy-isp1301.c
··· 132 132 .name = DRV_NAME, 133 133 .of_match_table = isp1301_of_match, 134 134 }, 135 - .probe_new = isp1301_probe, 135 + .probe = isp1301_probe, 136 136 .remove = isp1301_remove, 137 137 .id_table = isp1301_id, 138 138 };
+1 -1
drivers/usb/typec/anx7411.c
··· 1584 1584 .of_match_table = anx_match_table, 1585 1585 .pm = &anx7411_pm_ops, 1586 1586 }, 1587 - .probe_new = anx7411_i2c_probe, 1587 + .probe = anx7411_i2c_probe, 1588 1588 .remove = anx7411_i2c_remove, 1589 1589 1590 1590 .id_table = anx7411_id,
+2 -2
drivers/usb/typec/hd3ss3220.c
··· 292 292 .name = "hd3ss3220", 293 293 .of_match_table = dev_ids, 294 294 }, 295 - .probe_new = hd3ss3220_probe, 296 - .remove = hd3ss3220_remove, 295 + .probe = hd3ss3220_probe, 296 + .remove = hd3ss3220_remove, 297 297 }; 298 298 299 299 module_i2c_driver(hd3ss3220_driver);
+1 -1
drivers/usb/typec/mux/fsa4480.c
··· 206 206 .name = "fsa4480", 207 207 .of_match_table = fsa4480_of_table, 208 208 }, 209 - .probe_new = fsa4480_probe, 209 + .probe = fsa4480_probe, 210 210 .remove = fsa4480_remove, 211 211 .id_table = fsa4480_table, 212 212 };
+1 -1
drivers/usb/typec/mux/pi3usb30532.c
··· 178 178 .driver = { 179 179 .name = "pi3usb30532", 180 180 }, 181 - .probe_new = pi3usb30532_probe, 181 + .probe = pi3usb30532_probe, 182 182 .remove = pi3usb30532_remove, 183 183 .id_table = pi3usb30532_table, 184 184 };
+1 -1
drivers/usb/typec/rt1719.c
··· 949 949 .name = "rt1719", 950 950 .of_match_table = rt1719_device_table, 951 951 }, 952 - .probe_new = rt1719_probe, 952 + .probe = rt1719_probe, 953 953 .remove = rt1719_remove, 954 954 }; 955 955 module_i2c_driver(rt1719_driver);
+1 -1
drivers/usb/typec/stusb160x.c
··· 870 870 .pm = &stusb160x_pm_ops, 871 871 .of_match_table = stusb160x_of_match, 872 872 }, 873 - .probe_new = stusb160x_probe, 873 + .probe = stusb160x_probe, 874 874 .remove = stusb160x_remove, 875 875 }; 876 876 module_i2c_driver(stusb160x_driver);
+1 -1
drivers/usb/typec/tcpm/fusb302.c
··· 1836 1836 .pm = &fusb302_pm_ops, 1837 1837 .of_match_table = of_match_ptr(fusb302_dt_match), 1838 1838 }, 1839 - .probe_new = fusb302_probe, 1839 + .probe = fusb302_probe, 1840 1840 .remove = fusb302_remove, 1841 1841 .id_table = fusb302_i2c_device_id, 1842 1842 };
+1 -1
drivers/usb/typec/tcpm/tcpci.c
··· 895 895 .name = "tcpci", 896 896 .of_match_table = of_match_ptr(tcpci_of_match), 897 897 }, 898 - .probe_new = tcpci_probe, 898 + .probe = tcpci_probe, 899 899 .remove = tcpci_remove, 900 900 .id_table = tcpci_id, 901 901 };
+1 -1
drivers/usb/typec/tcpm/tcpci_maxim_core.c
··· 508 508 .name = "maxtcpc", 509 509 .of_match_table = of_match_ptr(max_tcpci_of_match), 510 510 }, 511 - .probe_new = max_tcpci_probe, 511 + .probe = max_tcpci_probe, 512 512 .remove = max_tcpci_remove, 513 513 .id_table = max_tcpci_id, 514 514 };
+1 -1
drivers/usb/typec/tcpm/tcpci_rt1711h.c
··· 412 412 .name = "rt1711h", 413 413 .of_match_table = of_match_ptr(rt1711h_of_match), 414 414 }, 415 - .probe_new = rt1711h_probe, 415 + .probe = rt1711h_probe, 416 416 .remove = rt1711h_remove, 417 417 .id_table = rt1711h_id, 418 418 };
+1 -1
drivers/usb/typec/tipd/core.c
··· 950 950 .pm = &tps6598x_pm_ops, 951 951 .of_match_table = tps6598x_of_match, 952 952 }, 953 - .probe_new = tps6598x_probe, 953 + .probe = tps6598x_probe, 954 954 .remove = tps6598x_remove, 955 955 .id_table = tps6598x_id, 956 956 };
+1 -1
drivers/usb/typec/ucsi/ucsi_ccg.c
··· 1495 1495 .acpi_match_table = amd_i2c_ucsi_match, 1496 1496 .of_match_table = ucsi_ccg_of_match_table, 1497 1497 }, 1498 - .probe_new = ucsi_ccg_probe, 1498 + .probe = ucsi_ccg_probe, 1499 1499 .remove = ucsi_ccg_remove, 1500 1500 .id_table = ucsi_ccg_device_id, 1501 1501 };
+1 -1
drivers/usb/typec/ucsi/ucsi_stm32g0.c
··· 763 763 .of_match_table = of_match_ptr(ucsi_stm32g0_typec_of_match), 764 764 .pm = pm_sleep_ptr(&ucsi_stm32g0_pm_ops), 765 765 }, 766 - .probe_new = ucsi_stm32g0_probe, 766 + .probe = ucsi_stm32g0_probe, 767 767 .remove = ucsi_stm32g0_remove, 768 768 .id_table = ucsi_stm32g0_typec_i2c_devid 769 769 };
+1 -1
drivers/usb/typec/wusb3801.c
··· 420 420 MODULE_DEVICE_TABLE(of, wusb3801_of_match); 421 421 422 422 static struct i2c_driver wusb3801_driver = { 423 - .probe_new = wusb3801_probe, 423 + .probe = wusb3801_probe, 424 424 .remove = wusb3801_remove, 425 425 .driver = { 426 426 .name = "wusb3801",