Commit 7075359c authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

regulator: fan53880: Convert to use .probe_new

Use the new .probe_new for fan53880.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarChristoph Fritz <chf.fritz@googlemail.com>
Link: https://lore.kernel.org/r/20210517105325.1227393-2-axel.lin@ingics.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3799fa23
...@@ -111,8 +111,7 @@ static const struct regmap_config fan53880_regmap = { ...@@ -111,8 +111,7 @@ static const struct regmap_config fan53880_regmap = {
.max_register = FAN53880_ENABLE_BOOST, .max_register = FAN53880_ENABLE_BOOST,
}; };
static int fan53880_i2c_probe(struct i2c_client *i2c, static int fan53880_i2c_probe(struct i2c_client *i2c)
const struct i2c_device_id *id)
{ {
struct regulator_config config = { }; struct regulator_config config = { };
struct regulator_dev *rdev; struct regulator_dev *rdev;
...@@ -174,7 +173,7 @@ static struct i2c_driver fan53880_regulator_driver = { ...@@ -174,7 +173,7 @@ static struct i2c_driver fan53880_regulator_driver = {
.name = "fan53880", .name = "fan53880",
.of_match_table = of_match_ptr(fan53880_dt_ids), .of_match_table = of_match_ptr(fan53880_dt_ids),
}, },
.probe = fan53880_i2c_probe, .probe_new = fan53880_i2c_probe,
.id_table = fan53880_i2c_id, .id_table = fan53880_i2c_id,
}; };
module_i2c_driver(fan53880_regulator_driver); module_i2c_driver(fan53880_regulator_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