usb: phy: isp1301: Convert to i2c's .probe_new()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 18 Nov 2022 22:45:10 +0000 (23:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Nov 2022 16:33:27 +0000 (17:33 +0100)
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221118224540.619276-577-uwe@kleine-koenig.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/phy/phy-isp1301.c

index c2777a5..f4ee14d 100644 (file)
@@ -92,8 +92,7 @@ static int isp1301_phy_set_vbus(struct usb_phy *phy, int on)
        return 0;
 }
 
-static int isp1301_probe(struct i2c_client *client,
-                        const struct i2c_device_id *i2c_id)
+static int isp1301_probe(struct i2c_client *client)
 {
        struct isp1301 *isp;
        struct usb_phy *phy;
@@ -133,7 +132,7 @@ static struct i2c_driver isp1301_driver = {
                .name = DRV_NAME,
                .of_match_table = isp1301_of_match,
        },
-       .probe = isp1301_probe,
+       .probe_new = isp1301_probe,
        .remove = isp1301_remove,
        .id_table = isp1301_id,
 };