Skip to content

Commit 5313121

Browse files
Uwe Kleine-Königchanwoochoi
authored andcommitted
extcon: usbc-tusb320: 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 <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
1 parent 881de30 commit 5313121

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/extcon/extcon-usbc-tusb320.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,7 @@ static int tusb320_typec_probe(struct i2c_client *client,
421421
return 0;
422422
}
423423

424-
static int tusb320_probe(struct i2c_client *client,
425-
const struct i2c_device_id *id)
424+
static int tusb320_probe(struct i2c_client *client)
426425
{
427426
struct tusb320_priv *priv;
428427
const void *match_data;
@@ -495,7 +494,7 @@ static const struct of_device_id tusb320_extcon_dt_match[] = {
495494
MODULE_DEVICE_TABLE(of, tusb320_extcon_dt_match);
496495

497496
static struct i2c_driver tusb320_extcon_driver = {
498-
.probe = tusb320_probe,
497+
.probe_new = tusb320_probe,
499498
.driver = {
500499
.name = "extcon-tusb320",
501500
.of_match_table = tusb320_extcon_dt_match,

0 commit comments

Comments
 (0)