We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe15c26 commit 55e7dddCopy full SHA for 55e7ddd
drivers/misc/ad525x_dpot-i2c.c
@@ -50,9 +50,9 @@ static const struct ad_dpot_bus_ops bops = {
50
.write_r8d16 = write_r8d16,
51
};
52
53
-static int ad_dpot_i2c_probe(struct i2c_client *client,
54
- const struct i2c_device_id *id)
+static int ad_dpot_i2c_probe(struct i2c_client *client)
55
{
+ const struct i2c_device_id *id = i2c_client_get_device_id(client);
56
struct ad_dpot_bus_data bdata = {
57
.client = client,
58
.bops = &bops,
@@ -106,7 +106,7 @@ static struct i2c_driver ad_dpot_i2c_driver = {
106
.driver = {
107
.name = "ad_dpot",
108
},
109
- .probe = ad_dpot_i2c_probe,
+ .probe_new = ad_dpot_i2c_probe,
110
.remove = ad_dpot_i2c_remove,
111
.id_table = ad_dpot_id,
112
0 commit comments