Commit 2532d5f8 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown

regulator: lp3972: 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>
Acked-for-MFD-by: default avatarLee Jones <lee@kernel.org>
Acked-for-Backlight-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221118224540.619276-544-uwe@kleine-koenig.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 020cf73b
...@@ -495,8 +495,7 @@ static int setup_regulators(struct lp3972 *lp3972, ...@@ -495,8 +495,7 @@ static int setup_regulators(struct lp3972 *lp3972,
return 0; return 0;
} }
static int lp3972_i2c_probe(struct i2c_client *i2c, static int lp3972_i2c_probe(struct i2c_client *i2c)
const struct i2c_device_id *id)
{ {
struct lp3972 *lp3972; struct lp3972 *lp3972;
struct lp3972_platform_data *pdata = dev_get_platdata(&i2c->dev); struct lp3972_platform_data *pdata = dev_get_platdata(&i2c->dev);
...@@ -547,7 +546,7 @@ static struct i2c_driver lp3972_i2c_driver = { ...@@ -547,7 +546,7 @@ static struct i2c_driver lp3972_i2c_driver = {
.driver = { .driver = {
.name = "lp3972", .name = "lp3972",
}, },
.probe = lp3972_i2c_probe, .probe_new = lp3972_i2c_probe,
.id_table = lp3972_i2c_id, .id_table = lp3972_i2c_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