Skip to content

Commit 05b2e34

Browse files
Uwe Kleine-Königgregkh
authored andcommitted
usb: typec: ucsi: stm32g0: Convert to i2c's .probe_new()
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> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20221118224540.619276-585-uwe@kleine-koenig.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent afdc128 commit 05b2e34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/usb/typec/ucsi/ucsi_stm32g0.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ static int ucsi_stm32g0_probe_bootloader(struct ucsi *ucsi)
626626
return 0;
627627
}
628628

629-
static int ucsi_stm32g0_probe(struct i2c_client *client, const struct i2c_device_id *id)
629+
static int ucsi_stm32g0_probe(struct i2c_client *client)
630630
{
631631
struct device *dev = &client->dev;
632632
struct ucsi_stm32g0 *g0;
@@ -763,7 +763,7 @@ static struct i2c_driver ucsi_stm32g0_i2c_driver = {
763763
.of_match_table = of_match_ptr(ucsi_stm32g0_typec_of_match),
764764
.pm = pm_sleep_ptr(&ucsi_stm32g0_pm_ops),
765765
},
766-
.probe = ucsi_stm32g0_probe,
766+
.probe_new = ucsi_stm32g0_probe,
767767
.remove = ucsi_stm32g0_remove,
768768
.id_table = ucsi_stm32g0_typec_i2c_devid
769769
};

0 commit comments

Comments
 (0)