Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: typec: anx7411: 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>
Link: https://lore.kernel.org/r/20221118224540.619276-578-uwe@kleine-koenig.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Uwe Kleine-König and committed by
Greg Kroah-Hartman
cfb8e41a b5583ea8

+2 -3
+2 -3
drivers/usb/typec/anx7411.c
··· 1440 1440 return PTR_ERR_OR_ZERO(ctx->psy); 1441 1441 } 1442 1442 1443 - static int anx7411_i2c_probe(struct i2c_client *client, 1444 - const struct i2c_device_id *id) 1443 + static int anx7411_i2c_probe(struct i2c_client *client) 1445 1444 { 1446 1445 struct anx7411_data *plat; 1447 1446 struct device *dev = &client->dev; ··· 1584 1585 .of_match_table = anx_match_table, 1585 1586 .pm = &anx7411_pm_ops, 1586 1587 }, 1587 - .probe = anx7411_i2c_probe, 1588 + .probe_new = anx7411_i2c_probe, 1588 1589 .remove = anx7411_i2c_remove, 1589 1590 1590 1591 .id_table = anx7411_id,