Skip to content

Commit c852ec1

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/usb/typec/tcpm/tcpci_maxim.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ static int tcpci_init(struct tcpci *tcpci, struct tcpci_data *data)
438438
return -1;
439439
}
440440

441-
static int max_tcpci_probe(struct i2c_client *client, const struct i2c_device_id *i2c_id)
441+
static int max_tcpci_probe(struct i2c_client *client)
442442
{
443443
int ret;
444444
struct max_tcpci_chip *chip;
@@ -519,7 +519,7 @@ static struct i2c_driver max_tcpci_i2c_driver = {
519519
.name = "maxtcpc",
520520
.of_match_table = of_match_ptr(max_tcpci_of_match),
521521
},
522-
.probe = max_tcpci_probe,
522+
.probe_new = max_tcpci_probe,
523523
.remove = max_tcpci_remove,
524524
.id_table = max_tcpci_id,
525525
};

0 commit comments

Comments
 (0)