Commit e6028989 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Wolfram Sang

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/20221118224540.619276-596-uwe@kleine-koenig.orgSigned-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 01d93875
...@@ -442,8 +442,7 @@ static u8 ds2482_w1_set_pullup(void *data, int delay) ...@@ -442,8 +442,7 @@ static u8 ds2482_w1_set_pullup(void *data, int delay)
} }
static int ds2482_probe(struct i2c_client *client, static int ds2482_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct ds2482_data *data; struct ds2482_data *data;
int err = -ENODEV; int err = -ENODEV;
...@@ -553,7 +552,7 @@ static struct i2c_driver ds2482_driver = { ...@@ -553,7 +552,7 @@ static struct i2c_driver ds2482_driver = {
.driver = { .driver = {
.name = "ds2482", .name = "ds2482",
}, },
.probe = ds2482_probe, .probe_new = ds2482_probe,
.remove = ds2482_remove, .remove = ds2482_remove,
.id_table = ds2482_id, .id_table = ds2482_id,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment