Skip to content

Commit df9c4fa

Browse files
Uwe Kleine-Königchanwoochoi
authored andcommitted
extcon: fsa9480: 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 5de7cdd commit df9c4fa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/extcon/extcon-fsa9480.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,7 @@ static irqreturn_t fsa9480_irq_handler(int irq, void *data)
257257
return IRQ_HANDLED;
258258
}
259259

260-
static int fsa9480_probe(struct i2c_client *client,
261-
const struct i2c_device_id *id)
260+
static int fsa9480_probe(struct i2c_client *client)
262261
{
263262
struct fsa9480_usbsw *info;
264263
int ret;
@@ -370,7 +369,7 @@ static struct i2c_driver fsa9480_i2c_driver = {
370369
.pm = &fsa9480_pm_ops,
371370
.of_match_table = fsa9480_of_match,
372371
},
373-
.probe = fsa9480_probe,
372+
.probe_new = fsa9480_probe,
374373
.id_table = fsa9480_id,
375374
};
376375

0 commit comments

Comments
 (0)