usb: Switch i2c drivers back to use .probe()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 17 May 2023 18:15:28 +0000 (20:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 May 2023 14:53:11 +0000 (15:53 +0100)
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>
18 files changed:
drivers/usb/misc/usb251xb.c
drivers/usb/misc/usb3503.c
drivers/usb/misc/usb4604.c
drivers/usb/phy/phy-isp1301.c
drivers/usb/typec/anx7411.c
drivers/usb/typec/hd3ss3220.c
drivers/usb/typec/mux/fsa4480.c
drivers/usb/typec/mux/pi3usb30532.c
drivers/usb/typec/rt1719.c
drivers/usb/typec/stusb160x.c
drivers/usb/typec/tcpm/fusb302.c
drivers/usb/typec/tcpm/tcpci.c
drivers/usb/typec/tcpm/tcpci_maxim_core.c
drivers/usb/typec/tcpm/tcpci_rt1711h.c
drivers/usb/typec/tipd/core.c
drivers/usb/typec/ucsi/ucsi_ccg.c
drivers/usb/typec/ucsi/ucsi_stm32g0.c
drivers/usb/typec/wusb3801.c

index ce1da80d33656f93b84135aa0a08311d3d1e0b65..1f3329ef5c7a0e9cf8280e8aa589d36b737b0a18 100644 (file)
@@ -746,7 +746,7 @@ static struct i2c_driver usb251xb_i2c_driver = {
                .of_match_table = usb251xb_of_match,
                .pm = &usb251xb_pm_ops,
        },
-       .probe_new = usb251xb_i2c_probe,
+       .probe = usb251xb_i2c_probe,
        .id_table = usb251xb_id,
 };
 
index fa3005934942441480ff3afd043e3394ccb30a65..72765077932c45045706b6b6804eb9b59ae39cfd 100644 (file)
@@ -411,7 +411,7 @@ static struct i2c_driver usb3503_i2c_driver = {
                .pm = pm_ptr(&usb3503_i2c_pm_ops),
                .of_match_table = of_match_ptr(usb3503_of_match),
        },
-       .probe_new      = usb3503_i2c_probe,
+       .probe          = usb3503_i2c_probe,
        .remove         = usb3503_i2c_remove,
        .id_table       = usb3503_id,
 };
index 6b5e77231efa175fe07fe9d910f064094d05ecfd..065e269ba4e3dcca9c5a3af4f6c3ddbc1705a948 100644 (file)
@@ -154,7 +154,7 @@ static struct i2c_driver usb4604_i2c_driver = {
                .pm = pm_ptr(&usb4604_i2c_pm_ops),
                .of_match_table = of_match_ptr(usb4604_of_match),
        },
-       .probe_new      = usb4604_i2c_probe,
+       .probe          = usb4604_i2c_probe,
        .id_table       = usb4604_id,
 };
 module_i2c_driver(usb4604_i2c_driver);
index f4ee14d985853c0310a69704579d565ba7a40d4f..993d7525a102115d6c65aec0d3f2e191aa0260df 100644 (file)
@@ -132,7 +132,7 @@ static struct i2c_driver isp1301_driver = {
                .name = DRV_NAME,
                .of_match_table = isp1301_of_match,
        },
-       .probe_new = isp1301_probe,
+       .probe = isp1301_probe,
        .remove = isp1301_remove,
        .id_table = isp1301_id,
 };
index 3d5edce270a44c533050f27fd1a82575e13d26e9..221604f933a40bf66b05bab30061b1ead9bc837d 100644 (file)
@@ -1584,7 +1584,7 @@ static struct i2c_driver anx7411_driver = {
                .of_match_table = anx_match_table,
                .pm = &anx7411_pm_ops,
        },
-       .probe_new = anx7411_i2c_probe,
+       .probe = anx7411_i2c_probe,
        .remove = anx7411_i2c_remove,
 
        .id_table = anx7411_id,
index 8bbeb9b1e439407132fbb8bada675b4cc878b4a3..fb1242e82ffdc64a9a3330f50155bb8f0fe45685 100644 (file)
@@ -292,8 +292,8 @@ static struct i2c_driver hd3ss3220_driver = {
                .name = "hd3ss3220",
                .of_match_table = dev_ids,
        },
-       .probe_new = hd3ss3220_probe,
-       .remove =  hd3ss3220_remove,
+       .probe = hd3ss3220_probe,
+       .remove = hd3ss3220_remove,
 };
 
 module_i2c_driver(hd3ss3220_driver);
index d6495e533e585a88a317bd0bda0974d0dd81513f..b201dda63d77aa603489451c40d497ef7903276b 100644 (file)
@@ -206,7 +206,7 @@ static struct i2c_driver fsa4480_driver = {
                .name = "fsa4480",
                .of_match_table = fsa4480_of_table,
        },
-       .probe_new      = fsa4480_probe,
+       .probe          = fsa4480_probe,
        .remove         = fsa4480_remove,
        .id_table       = fsa4480_table,
 };
index 1cd388b55c307748ac5841b759194311105ef8ff..8eeec135dcdbd0e67982309224341bde6ebedad6 100644 (file)
@@ -178,7 +178,7 @@ static struct i2c_driver pi3usb30532_driver = {
        .driver = {
                .name = "pi3usb30532",
        },
-       .probe_new      = pi3usb30532_probe,
+       .probe          = pi3usb30532_probe,
        .remove         = pi3usb30532_remove,
        .id_table       = pi3usb30532_table,
 };
index ea8b700b0cebc15e6917432964266a3a4c35f1c6..be02d420920e57a56c65c625c821702a430012eb 100644 (file)
@@ -949,7 +949,7 @@ static struct i2c_driver rt1719_driver = {
                .name = "rt1719",
                .of_match_table = rt1719_device_table,
        },
-       .probe_new = rt1719_probe,
+       .probe = rt1719_probe,
        .remove = rt1719_remove,
 };
 module_i2c_driver(rt1719_driver);
index 494b371151e0a1d627ce3e8f7f306124f61d76ed..3ab118df1bd4b4bda04e8f6d39e7bf0ef858d877 100644 (file)
@@ -870,7 +870,7 @@ static struct i2c_driver stusb160x_driver = {
                .pm = &stusb160x_pm_ops,
                .of_match_table = stusb160x_of_match,
        },
-       .probe_new = stusb160x_probe,
+       .probe = stusb160x_probe,
        .remove = stusb160x_remove,
 };
 module_i2c_driver(stusb160x_driver);
index 62ba53357612453a39ad47302e29f07ed8f9a092..7fc1ffa14f76eb3504ef93de6fa4c95e1c12e128 100644 (file)
@@ -1836,7 +1836,7 @@ static struct i2c_driver fusb302_driver = {
                   .pm = &fusb302_pm_ops,
                   .of_match_table = of_match_ptr(fusb302_dt_match),
                   },
-       .probe_new = fusb302_probe,
+       .probe = fusb302_probe,
        .remove = fusb302_remove,
        .id_table = fusb302_i2c_device_id,
 };
index 8da23240afbe4c525a65c18c043fb57d46fe2792..fc708c289a73a5eca20f61c36d023cc0b5ea976d 100644 (file)
@@ -895,7 +895,7 @@ static struct i2c_driver tcpci_i2c_driver = {
                .name = "tcpci",
                .of_match_table = of_match_ptr(tcpci_of_match),
        },
-       .probe_new = tcpci_probe,
+       .probe = tcpci_probe,
        .remove = tcpci_remove,
        .id_table = tcpci_id,
 };
index f32cda2a5e3aa83a36e681b57faae1f02c35b395..9454b12a073c96aecb2241a90b562c2190bfc2b5 100644 (file)
@@ -508,7 +508,7 @@ static struct i2c_driver max_tcpci_i2c_driver = {
                .name = "maxtcpc",
                .of_match_table = of_match_ptr(max_tcpci_of_match),
        },
-       .probe_new = max_tcpci_probe,
+       .probe = max_tcpci_probe,
        .remove = max_tcpci_remove,
        .id_table = max_tcpci_id,
 };
index a0e9e3fe8564ce726516e1bd0441ec00d871672f..17ebc5fb684f9f56e7f91a695621a401dd31ee9a 100644 (file)
@@ -412,7 +412,7 @@ static struct i2c_driver rt1711h_i2c_driver = {
                .name = "rt1711h",
                .of_match_table = of_match_ptr(rt1711h_of_match),
        },
-       .probe_new = rt1711h_probe,
+       .probe = rt1711h_probe,
        .remove = rt1711h_remove,
        .id_table = rt1711h_id,
 };
index 438cc40660a1bf3f8074dc0e7e6be1d1183280ea..69a4d1e9e8085cdc465a8a68985041b076d43f95 100644 (file)
@@ -950,7 +950,7 @@ static struct i2c_driver tps6598x_i2c_driver = {
                .pm = &tps6598x_pm_ops,
                .of_match_table = tps6598x_of_match,
        },
-       .probe_new = tps6598x_probe,
+       .probe = tps6598x_probe,
        .remove = tps6598x_remove,
        .id_table = tps6598x_id,
 };
index e0ed465bd518d44c3fd0c70fa5fe9bfcd53dc9a2..607061a37eca3de4ce5499e8dae2602fc5c718b2 100644 (file)
@@ -1495,7 +1495,7 @@ static struct i2c_driver ucsi_ccg_driver = {
                .acpi_match_table = amd_i2c_ucsi_match,
                .of_match_table = ucsi_ccg_of_match_table,
        },
-       .probe_new = ucsi_ccg_probe,
+       .probe = ucsi_ccg_probe,
        .remove = ucsi_ccg_remove,
        .id_table = ucsi_ccg_device_id,
 };
index 93fead0096b7bc10caf7f21cca95bd505579ebc6..93d7806681cf0147baf37a98281fc2b8192c73a3 100644 (file)
@@ -763,7 +763,7 @@ static struct i2c_driver ucsi_stm32g0_i2c_driver = {
                .of_match_table = of_match_ptr(ucsi_stm32g0_typec_of_match),
                .pm = pm_sleep_ptr(&ucsi_stm32g0_pm_ops),
        },
-       .probe_new = ucsi_stm32g0_probe,
+       .probe = ucsi_stm32g0_probe,
        .remove = ucsi_stm32g0_remove,
        .id_table = ucsi_stm32g0_typec_i2c_devid
 };
index a43a18d4b02edc232c9bc58ff2fca833437985c0..6062875fb04a9d3f92a6df2bcfea9844fd52dbfc 100644 (file)
@@ -420,7 +420,7 @@ static const struct of_device_id wusb3801_of_match[] = {
 MODULE_DEVICE_TABLE(of, wusb3801_of_match);
 
 static struct i2c_driver wusb3801_driver = {
-       .probe_new      = wusb3801_probe,
+       .probe          = wusb3801_probe,
        .remove         = wusb3801_remove,
        .driver         = {
                .name           = "wusb3801",