Skip to content

Commit e602898

Browse files
Uwe Kleine-Königwsakernel
authored andcommitted
w1: ds2482: 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. Link: https://lore.kernel.org/lkml/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 01d9387 commit e602898

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/w1/masters/ds2482.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,7 @@ static u8 ds2482_w1_set_pullup(void *data, int delay)
442442
}
443443

444444

445-
static int ds2482_probe(struct i2c_client *client,
446-
const struct i2c_device_id *id)
445+
static int ds2482_probe(struct i2c_client *client)
447446
{
448447
struct ds2482_data *data;
449448
int err = -ENODEV;
@@ -553,7 +552,7 @@ static struct i2c_driver ds2482_driver = {
553552
.driver = {
554553
.name = "ds2482",
555554
},
556-
.probe = ds2482_probe,
555+
.probe_new = ds2482_probe,
557556
.remove = ds2482_remove,
558557
.id_table = ds2482_id,
559558
};

0 commit comments

Comments
 (0)