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 7f69edb commit 87feccbCopy full SHA for 87feccb
drivers/regulator/lp872x.c
@@ -879,8 +879,9 @@ static struct lp872x_platform_data
879
}
880
#endif
881
882
-static int lp872x_probe(struct i2c_client *cl, const struct i2c_device_id *id)
+static int lp872x_probe(struct i2c_client *cl)
883
{
884
+ const struct i2c_device_id *id = i2c_client_get_device_id(cl);
885
struct lp872x *lp;
886
struct lp872x_platform_data *pdata;
887
int ret;
@@ -946,7 +947,7 @@ static struct i2c_driver lp872x_driver = {
946
947
.name = "lp872x",
948
.of_match_table = of_match_ptr(lp872x_dt_ids),
949
},
- .probe = lp872x_probe,
950
+ .probe_new = lp872x_probe,
951
.id_table = lp872x_ids,
952
};
953
0 commit comments