diff options
author | Axel Lin <axel.lin@ingics.com> | 2020-01-09 18:58:08 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-01-13 18:03:06 +0300 |
commit | 77e29598ca3fc20314f1acec35ada9706b3ea16b (patch) | |
tree | 2f7c4a95d54f48956a28eee7fc53e25192dbee45 /drivers/regulator/da9210-regulator.c | |
parent | 7eec67869893bc34bd3a3126e5124a4ef017e0cd (diff) | |
download | linux-77e29598ca3fc20314f1acec35ada9706b3ea16b.tar.xz |
regulator: Convert i2c drivers to use .probe_new
Use the new .probe_new for i2c drivers.
These drivers do not use const struct i2c_device_id * argument, so convert
them to utilise the simplified i2c driver registration.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20200109155808.22003-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/da9210-regulator.c')
-rw-r--r-- | drivers/regulator/da9210-regulator.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/regulator/da9210-regulator.c b/drivers/regulator/da9210-regulator.c index f9448ed50e05..0cdeb6186529 100644 --- a/drivers/regulator/da9210-regulator.c +++ b/drivers/regulator/da9210-regulator.c @@ -131,8 +131,7 @@ static const struct of_device_id da9210_dt_ids[] = { }; MODULE_DEVICE_TABLE(of, da9210_dt_ids); -static int da9210_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int da9210_i2c_probe(struct i2c_client *i2c) { struct da9210 *chip; struct device *dev = &i2c->dev; @@ -228,7 +227,7 @@ static struct i2c_driver da9210_regulator_driver = { .name = "da9210", .of_match_table = of_match_ptr(da9210_dt_ids), }, - .probe = da9210_i2c_probe, + .probe_new = da9210_i2c_probe, .id_table = da9210_i2c_id, }; |