Skip to content

Commit 881de30

Browse files
Uwe Kleine-Königchanwoochoi
authored andcommitted
extcon: rt8973: 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 df9c4fa commit 881de30

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/extcon/extcon-rt8973a.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,7 @@ static void rt8973a_init_dev_type(struct rt8973a_muic_info *info)
548548
}
549549
}
550550

551-
static int rt8973a_muic_i2c_probe(struct i2c_client *i2c,
552-
const struct i2c_device_id *id)
551+
static int rt8973a_muic_i2c_probe(struct i2c_client *i2c)
553552
{
554553
struct device_node *np = i2c->dev.of_node;
555554
struct rt8973a_muic_info *info;
@@ -696,7 +695,7 @@ static struct i2c_driver rt8973a_muic_i2c_driver = {
696695
.pm = &rt8973a_muic_pm_ops,
697696
.of_match_table = rt8973a_dt_match,
698697
},
699-
.probe = rt8973a_muic_i2c_probe,
698+
.probe_new = rt8973a_muic_i2c_probe,
700699
.remove = rt8973a_muic_i2c_remove,
701700
.id_table = rt8973a_i2c_id,
702701
};

0 commit comments

Comments
 (0)