diff options
author | Axel Lin <axel.lin@ingics.com> | 2021-05-17 13:53:25 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-05-18 16:04:34 +0300 |
commit | 7075359c8e0da1b01e34201b09b9ab2fd23b8a7d (patch) | |
tree | 43669146000ea8ab24cc9b1d492a81ce278e1446 | |
parent | 3799fa23afa4cac347739d5290df44a474a82a82 (diff) | |
download | linux-7075359c8e0da1b01e34201b09b9ab2fd23b8a7d.tar.xz |
regulator: fan53880: Convert to use .probe_new
Use the new .probe_new for fan53880.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Christoph Fritz <chf.fritz@googlemail.com>
Link: https://lore.kernel.org/r/20210517105325.1227393-2-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/regulator/fan53880.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/regulator/fan53880.c b/drivers/regulator/fan53880.c index e83eb4fb1876..d49f10ac222d 100644 --- a/drivers/regulator/fan53880.c +++ b/drivers/regulator/fan53880.c @@ -111,8 +111,7 @@ static const struct regmap_config fan53880_regmap = { .max_register = FAN53880_ENABLE_BOOST, }; -static int fan53880_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int fan53880_i2c_probe(struct i2c_client *i2c) { struct regulator_config config = { }; struct regulator_dev *rdev; @@ -174,7 +173,7 @@ static struct i2c_driver fan53880_regulator_driver = { .name = "fan53880", .of_match_table = of_match_ptr(fan53880_dt_ids), }, - .probe = fan53880_i2c_probe, + .probe_new = fan53880_i2c_probe, .id_table = fan53880_i2c_id, }; module_i2c_driver(fan53880_regulator_driver); |