summaryrefslogtreecommitdiff
path: root/drivers/regulator/isl9305.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/isl9305.c
parent7eec67869893bc34bd3a3126e5124a4ef017e0cd (diff)
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/isl9305.c')
-rw-r--r--drivers/regulator/isl9305.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/regulator/isl9305.c b/drivers/regulator/isl9305.c
index 978f5e903cae..cfb765986d0d 100644
--- a/drivers/regulator/isl9305.c
+++ b/drivers/regulator/isl9305.c
@@ -137,8 +137,7 @@ static const struct regmap_config isl9305_regmap = {
.cache_type = REGCACHE_RBTREE,
};
-static int isl9305_i2c_probe(struct i2c_client *i2c,
- const struct i2c_device_id *id)
+static int isl9305_i2c_probe(struct i2c_client *i2c)
{
struct regulator_config config = { };
struct isl9305_pdata *pdata = i2c->dev.platform_data;
@@ -198,7 +197,7 @@ static struct i2c_driver isl9305_regulator_driver = {
.name = "isl9305",
.of_match_table = of_match_ptr(isl9305_dt_ids),
},
- .probe = isl9305_i2c_probe,
+ .probe_new = isl9305_i2c_probe,
.id_table = isl9305_i2c_id,
};