Skip to content

Commit 55e7ddd

Browse files
Uwe Kleine-Königwsakernel
authored andcommitted
misc: ad525x_dpot-i2c: Convert to i2c's .probe_new()
.probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Acked-by: Greg Kroah-Hartman <[email protected]> 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 fe15c26 commit 55e7ddd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/misc/ad525x_dpot-i2c.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ static const struct ad_dpot_bus_ops bops = {
5050
.write_r8d16 = write_r8d16,
5151
};
5252

53-
static int ad_dpot_i2c_probe(struct i2c_client *client,
54-
const struct i2c_device_id *id)
53+
static int ad_dpot_i2c_probe(struct i2c_client *client)
5554
{
55+
const struct i2c_device_id *id = i2c_client_get_device_id(client);
5656
struct ad_dpot_bus_data bdata = {
5757
.client = client,
5858
.bops = &bops,
@@ -106,7 +106,7 @@ static struct i2c_driver ad_dpot_i2c_driver = {
106106
.driver = {
107107
.name = "ad_dpot",
108108
},
109-
.probe = ad_dpot_i2c_probe,
109+
.probe_new = ad_dpot_i2c_probe,
110110
.remove = ad_dpot_i2c_remove,
111111
.id_table = ad_dpot_id,
112112
};

0 commit comments

Comments
 (0)