summaryrefslogtreecommitdiffstats
path: root/drivers/mux
diff options
context:
space:
mode:
authorPeter Rosin <peda@axentia.se>2018-04-11 14:47:36 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-23 13:31:27 +0200
commit2c363576dbc9182dc4aec082484265229581690a (patch)
tree676ed07463e0b804df3850b60fd8ae7904f99dc0 /drivers/mux
parent24b6d3eee183ddde814b47aedc7f0c0c5ab7b72d (diff)
downloadlinux-2c363576dbc9182dc4aec082484265229581690a.tar.bz2
mux: adg792a: switch to using .probe_new
Use the new probe style for i2c drivers. Signed-off-by: Peter Rosin <peda@axentia.se> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mux')
-rw-r--r--drivers/mux/adg792a.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mux/adg792a.c b/drivers/mux/adg792a.c
index 6a8725cf3d71..e8fc2fc1ab09 100644
--- a/drivers/mux/adg792a.c
+++ b/drivers/mux/adg792a.c
@@ -58,8 +58,7 @@ static const struct mux_control_ops adg792a_ops = {
.set = adg792a_set,
};
-static int adg792a_probe(struct i2c_client *i2c,
- const struct i2c_device_id *id)
+static int adg792a_probe(struct i2c_client *i2c)
{
struct device *dev = &i2c->dev;
struct mux_chip *mux_chip;
@@ -144,7 +143,7 @@ static struct i2c_driver adg792a_driver = {
.name = "adg792a",
.of_match_table = of_match_ptr(adg792a_of_match),
},
- .probe = adg792a_probe,
+ .probe_new = adg792a_probe,
.id_table = adg792a_id,
};
module_i2c_driver(adg792a_driver);