aboutsummaryrefslogtreecommitdiff
path: root/drivers/regulator/slg51000-regulator.c
diff options
context:
space:
mode:
authorGravatar Axel Lin <axel.lin@ingics.com> 2020-01-09 23:58:08 +0800
committerGravatar Mark Brown <broonie@kernel.org> 2020-01-13 15:03:06 +0000
commit77e29598ca3fc20314f1acec35ada9706b3ea16b (patch)
tree2f7c4a95d54f48956a28eee7fc53e25192dbee45 /drivers/regulator/slg51000-regulator.c
parentregulator: mpq7920: Check the correct variable in mpq7920_regulator_register() (diff)
downloadlinux-77e29598ca3fc20314f1acec35ada9706b3ea16b.tar.gz
linux-77e29598ca3fc20314f1acec35ada9706b3ea16b.tar.bz2
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/slg51000-regulator.c')
-rw-r--r--drivers/regulator/slg51000-regulator.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/regulator/slg51000-regulator.c b/drivers/regulator/slg51000-regulator.c
index bf1a3508ebc4..44e4cecbf6de 100644
--- a/drivers/regulator/slg51000-regulator.c
+++ b/drivers/regulator/slg51000-regulator.c
@@ -439,8 +439,7 @@ static void slg51000_clear_fault_log(struct slg51000 *chip)
dev_dbg(chip->dev, "Fault log: FLT_POR\n");
}
-static int slg51000_i2c_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int slg51000_i2c_probe(struct i2c_client *client)
{
struct device *dev = &client->dev;
struct slg51000 *chip;
@@ -509,7 +508,7 @@ static struct i2c_driver slg51000_regulator_driver = {
.driver = {
.name = "slg51000-regulator",
},
- .probe = slg51000_i2c_probe,
+ .probe_new = slg51000_i2c_probe,
.id_table = slg51000_i2c_id,
};