Skip to content

Commit f02586d

Browse files
Uwe Kleine-Königgregkh
authored andcommitted
usb: typec: tcpm/tcpci_rt1711h: 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> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20221118224540.619276-583-uwe@kleine-koenig.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d24182b commit f02586d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/usb/typec/tcpm/tcpci_rt1711h.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,7 @@ static int rt1711h_check_revision(struct i2c_client *i2c, struct rt1711h_chip *c
327327
return ret;
328328
}
329329

330-
static int rt1711h_probe(struct i2c_client *client,
331-
const struct i2c_device_id *i2c_id)
330+
static int rt1711h_probe(struct i2c_client *client)
332331
{
333332
int ret;
334333
struct rt1711h_chip *chip;
@@ -413,7 +412,7 @@ static struct i2c_driver rt1711h_i2c_driver = {
413412
.name = "rt1711h",
414413
.of_match_table = of_match_ptr(rt1711h_of_match),
415414
},
416-
.probe = rt1711h_probe,
415+
.probe_new = rt1711h_probe,
417416
.remove = rt1711h_remove,
418417
.id_table = rt1711h_id,
419418
};

0 commit comments

Comments
 (0)