aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/mcp16502.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2021-05-26 20:50:25 +0800
committerMark Brown <broonie@kernel.org>2021-06-01 14:05:25 +0100
commit1d15b3e6f9d95865450c8856401b3166ed074c83 (patch)
tree44543c50c754ebbc344f27da64d49f927e0d0aa9 /drivers/regulator/mcp16502.c
parentregulator: bd70528: Drop BD70528 support (diff)
downloadlinux-dev-1d15b3e6f9d95865450c8856401b3166ed074c83.tar.xz
linux-dev-1d15b3e6f9d95865450c8856401b3166ed074c83.zip
regulator: mcp16502: Convert to use .probe_new
Use the new .probe_new for mcp16502. Signed-off-by: Axel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210526125026.82549-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/mcp16502.c')
-rw-r--r--drivers/regulator/mcp16502.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/regulator/mcp16502.c b/drivers/regulator/mcp16502.c
index 88c6bd5b6c78..ac1b129e33d9 100644
--- a/drivers/regulator/mcp16502.c
+++ b/drivers/regulator/mcp16502.c
@@ -522,8 +522,7 @@ static const struct regmap_config mcp16502_regmap_config = {
.wr_table = &mcp16502_yes_reg_table,
};
-static int mcp16502_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int mcp16502_probe(struct i2c_client *client)
{
struct regulator_config config = { };
struct regulator_dev *rdev;
@@ -606,7 +605,7 @@ static const struct i2c_device_id mcp16502_i2c_id[] = {
MODULE_DEVICE_TABLE(i2c, mcp16502_i2c_id);
static struct i2c_driver mcp16502_drv = {
- .probe = mcp16502_probe,
+ .probe_new = mcp16502_probe,
.driver = {
.name = "mcp16502-regulator",
.of_match_table = of_match_ptr(mcp16502_ids),