summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/max20411-regulator.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-01-27 11:17:26 +0100
committerMark Brown <broonie@kernel.org>2023-01-27 12:14:15 +0000
commitfad8ddda1c40c00bff4ac45eb9b85e1f717f17f4 (patch)
treed26a972bdb92a044ff3f8e3d6df65554fb56075a /drivers/regulator/max20411-regulator.c
parent668f777d02f61faa834f1e24f3b99576dbe5ff6b (diff)
downloadlinux-stable-fad8ddda1c40c00bff4ac45eb9b85e1f717f17f4.tar.gz
linux-stable-fad8ddda1c40c00bff4ac45eb9b85e1f717f17f4.tar.bz2
linux-stable-fad8ddda1c40c00bff4ac45eb9b85e1f717f17f4.zip
regulator: max20411: 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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20230127101726.1313927-1-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/max20411-regulator.c')
-rw-r--r--drivers/regulator/max20411-regulator.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/regulator/max20411-regulator.c b/drivers/regulator/max20411-regulator.c
index b4faad54c458..e75d16048e2f 100644
--- a/drivers/regulator/max20411-regulator.c
+++ b/drivers/regulator/max20411-regulator.c
@@ -96,8 +96,7 @@ static const struct regulator_desc max20411_desc = {
.n_ramp_values = ARRAY_SIZE(max20411_slew_rates),
};
-static int max20411_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int max20411_probe(struct i2c_client *client)
{
struct regulator_init_data *init_data;
struct device *dev = &client->dev;
@@ -156,7 +155,7 @@ static struct i2c_driver max20411_i2c_driver = {
.name = "max20411",
.of_match_table = of_max20411_match_tbl,
},
- .probe = max20411_probe,
+ .probe_new = max20411_probe,
.id_table = max20411_id,
};
module_i2c_driver(max20411_i2c_driver);