lkml.org 
[lkml]   [2020]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] regulator: mpq7920: Convert to use .probe_new
Date
Use the new .probe_new instead.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/regulator/mpq7920.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/regulator/mpq7920.c b/drivers/regulator/mpq7920.c
index b133bab514a9..54c862edf571 100644
--- a/drivers/regulator/mpq7920.c
+++ b/drivers/regulator/mpq7920.c
@@ -260,8 +260,7 @@ static void mpq7920_parse_dt(struct device *dev,
of_node_put(np);
}

-static int mpq7920_i2c_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int mpq7920_i2c_probe(struct i2c_client *client)
{
struct device *dev = &client->dev;
struct mpq7920_regulator_info *info;
@@ -321,7 +320,7 @@ static struct i2c_driver mpq7920_regulator_driver = {
.name = "mpq7920",
.of_match_table = of_match_ptr(mpq7920_of_match),
},
- .probe = mpq7920_i2c_probe,
+ .probe_new = mpq7920_i2c_probe,
.id_table = mpq7920_id,
};
module_i2c_driver(mpq7920_regulator_driver);
--
2.20.1
\
 
 \ /
  Last update: 2020-01-14 13:46    [W:0.046 / U:6.632 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site