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

mfd: bd9571mwv: 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>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221118224540.619276-425-uwe@kleine-koenig.org
parent ace24876
...@@ -204,8 +204,7 @@ static int bd957x_identify(struct device *dev, struct regmap *regmap) ...@@ -204,8 +204,7 @@ static int bd957x_identify(struct device *dev, struct regmap *regmap)
return 0; return 0;
} }
static int bd9571mwv_probe(struct i2c_client *client, static int bd9571mwv_probe(struct i2c_client *client)
const struct i2c_device_id *ids)
{ {
const struct regmap_config *regmap_config; const struct regmap_config *regmap_config;
const struct regmap_irq_chip *irq_chip; const struct regmap_irq_chip *irq_chip;
...@@ -279,7 +278,7 @@ static struct i2c_driver bd9571mwv_driver = { ...@@ -279,7 +278,7 @@ static struct i2c_driver bd9571mwv_driver = {
.name = "bd9571mwv", .name = "bd9571mwv",
.of_match_table = bd9571mwv_of_match_table, .of_match_table = bd9571mwv_of_match_table,
}, },
.probe = bd9571mwv_probe, .probe_new = bd9571mwv_probe,
.id_table = bd9571mwv_id_table, .id_table = bd9571mwv_id_table,
}; };
module_i2c_driver(bd9571mwv_driver); module_i2c_driver(bd9571mwv_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