aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/ltc3676.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2020-01-09 23:58:08 +0800
committerMark Brown <broonie@kernel.org>2020-01-13 15:03:06 +0000
commit77e29598ca3fc20314f1acec35ada9706b3ea16b (patch)
tree2f7c4a95d54f48956a28eee7fc53e25192dbee45 /drivers/regulator/ltc3676.c
parentregulator: mpq7920: Check the correct variable in mpq7920_regulator_register() (diff)
downloadlinux-dev-77e29598ca3fc20314f1acec35ada9706b3ea16b.tar.xz
linux-dev-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/ltc3676.c')
-rw-r--r--drivers/regulator/ltc3676.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/regulator/ltc3676.c b/drivers/regulator/ltc3676.c
index d934540eb8c4..e12e52c69e52 100644
--- a/drivers/regulator/ltc3676.c
+++ b/drivers/regulator/ltc3676.c
@@ -301,8 +301,7 @@ static irqreturn_t ltc3676_isr(int irq, void *dev_id)
return IRQ_HANDLED;
}
-static int ltc3676_regulator_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int ltc3676_regulator_probe(struct i2c_client *client)
{
struct device *dev = &client->dev;
struct regulator_init_data *init_data = dev_get_platdata(dev);
@@ -380,7 +379,7 @@ static struct i2c_driver ltc3676_driver = {
.name = DRIVER_NAME,
.of_match_table = of_match_ptr(ltc3676_of_match),
},
- .probe = ltc3676_regulator_probe,
+ .probe_new = ltc3676_regulator_probe,
.id_table = ltc3676_i2c_id,
};
module_i2c_driver(ltc3676_driver);