diff options
author | Axel Lin <axel.lin@ingics.com> | 2020-01-09 16:58:08 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-01-13 16:03:06 +0100 |
commit | 77e29598ca3fc20314f1acec35ada9706b3ea16b (patch) | |
tree | 2f7c4a95d54f48956a28eee7fc53e25192dbee45 /drivers/regulator/sy8106a-regulator.c | |
parent | regulator: mpq7920: Check the correct variable in mpq7920_regulator_register() (diff) | |
download | linux-77e29598ca3fc20314f1acec35ada9706b3ea16b.tar.xz linux-77e29598ca3fc20314f1acec35ada9706b3ea16b.zip |
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/sy8106a-regulator.c')
-rw-r--r-- | drivers/regulator/sy8106a-regulator.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/regulator/sy8106a-regulator.c b/drivers/regulator/sy8106a-regulator.c index 42e03b2c10a0..2222e739e62b 100644 --- a/drivers/regulator/sy8106a-regulator.c +++ b/drivers/regulator/sy8106a-regulator.c @@ -61,8 +61,7 @@ static const struct regulator_desc sy8106a_reg = { /* * I2C driver interface functions */ -static int sy8106a_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int sy8106a_i2c_probe(struct i2c_client *i2c) { struct device *dev = &i2c->dev; struct regulator_dev *rdev; @@ -141,7 +140,7 @@ static struct i2c_driver sy8106a_regulator_driver = { .name = "sy8106a", .of_match_table = of_match_ptr(sy8106a_i2c_of_match), }, - .probe = sy8106a_i2c_probe, + .probe_new = sy8106a_i2c_probe, .id_table = sy8106a_i2c_id, }; |