summaryrefslogtreecommitdiff
path: root/drivers/regulator/sy8106a-regulator.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/sy8106a-regulator.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/sy8106a-regulator.c')
-rw-r--r--drivers/regulator/sy8106a-regulator.c5
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,
};