aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/regulator/tps65132-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/tps65132-regulator.c
parentregulator: mpq7920: Check the correct variable in mpq7920_regulator_register() (diff)
downloadwireguard-linux-77e29598ca3fc20314f1acec35ada9706b3ea16b.tar.xz
wireguard-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/tps65132-regulator.c')
-rw-r--r--drivers/regulator/tps65132-regulator.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/regulator/tps65132-regulator.c b/drivers/regulator/tps65132-regulator.c
index 7b0e38f8d627..0edc83089ba2 100644
--- a/drivers/regulator/tps65132-regulator.c
+++ b/drivers/regulator/tps65132-regulator.c
@@ -220,8 +220,7 @@ static const struct regmap_config tps65132_regmap_config = {
.wr_table = &tps65132_no_reg_table,
};
-static int tps65132_probe(struct i2c_client *client,
- const struct i2c_device_id *client_id)
+static int tps65132_probe(struct i2c_client *client)
{
struct device *dev = &client->dev;
struct tps65132_regulator *tps;
@@ -272,7 +271,7 @@ static struct i2c_driver tps65132_i2c_driver = {
.driver = {
.name = "tps65132",
},
- .probe = tps65132_probe,
+ .probe_new = tps65132_probe,
.id_table = tps65132_id,
};