Commit 4acb5992 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Lee Jones

mfd: lp873x: 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.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221118224540.619276-435-uwe@kleine-koenig.org
parent f7b497cb
...@@ -24,8 +24,7 @@ static const struct mfd_cell lp873x_cells[] = { ...@@ -24,8 +24,7 @@ static const struct mfd_cell lp873x_cells[] = {
{ .name = "lp873x-gpio", }, { .name = "lp873x-gpio", },
}; };
static int lp873x_probe(struct i2c_client *client, static int lp873x_probe(struct i2c_client *client)
const struct i2c_device_id *ids)
{ {
struct lp873x *lp873; struct lp873x *lp873;
int ret; int ret;
...@@ -79,7 +78,7 @@ static struct i2c_driver lp873x_driver = { ...@@ -79,7 +78,7 @@ static struct i2c_driver lp873x_driver = {
.name = "lp873x", .name = "lp873x",
.of_match_table = of_lp873x_match_table, .of_match_table = of_lp873x_match_table,
}, },
.probe = lp873x_probe, .probe_new = lp873x_probe,
.id_table = lp873x_id_table, .id_table = lp873x_id_table,
}; };
module_i2c_driver(lp873x_driver); module_i2c_driver(lp873x_driver);
......
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