Commit 1d15b3e6 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

regulator: mcp16502: Convert to use .probe_new

Use the new .probe_new for mcp16502.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20210526125026.82549-1-axel.lin@ingics.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 71de5d6e
...@@ -522,8 +522,7 @@ static const struct regmap_config mcp16502_regmap_config = { ...@@ -522,8 +522,7 @@ static const struct regmap_config mcp16502_regmap_config = {
.wr_table = &mcp16502_yes_reg_table, .wr_table = &mcp16502_yes_reg_table,
}; };
static int mcp16502_probe(struct i2c_client *client, static int mcp16502_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct regulator_config config = { }; struct regulator_config config = { };
struct regulator_dev *rdev; struct regulator_dev *rdev;
...@@ -606,7 +605,7 @@ static const struct i2c_device_id mcp16502_i2c_id[] = { ...@@ -606,7 +605,7 @@ static const struct i2c_device_id mcp16502_i2c_id[] = {
MODULE_DEVICE_TABLE(i2c, mcp16502_i2c_id); MODULE_DEVICE_TABLE(i2c, mcp16502_i2c_id);
static struct i2c_driver mcp16502_drv = { static struct i2c_driver mcp16502_drv = {
.probe = mcp16502_probe, .probe_new = mcp16502_probe,
.driver = { .driver = {
.name = "mcp16502-regulator", .name = "mcp16502-regulator",
.of_match_table = of_match_ptr(mcp16502_ids), .of_match_table = of_match_ptr(mcp16502_ids),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment