Commit 0b0549b6 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Chanwoo Choi

extcon: ptn5150: Convert to .probe_new

The 'struct i2c_device_id' argument of probe function is not used, so
convert the driver to simpler 'probe_new' interface.
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: default avatarVijai Kumar K <vijaikumar.kanagarajan@gmail.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 35f1f8f2
...@@ -218,8 +218,7 @@ static int ptn5150_init_dev_type(struct ptn5150_info *info) ...@@ -218,8 +218,7 @@ static int ptn5150_init_dev_type(struct ptn5150_info *info)
return 0; return 0;
} }
static int ptn5150_i2c_probe(struct i2c_client *i2c, static int ptn5150_i2c_probe(struct i2c_client *i2c)
const struct i2c_device_id *id)
{ {
struct device *dev = &i2c->dev; struct device *dev = &i2c->dev;
struct device_node *np = i2c->dev.of_node; struct device_node *np = i2c->dev.of_node;
...@@ -334,7 +333,7 @@ static struct i2c_driver ptn5150_i2c_driver = { ...@@ -334,7 +333,7 @@ static struct i2c_driver ptn5150_i2c_driver = {
.name = "ptn5150", .name = "ptn5150",
.of_match_table = ptn5150_dt_match, .of_match_table = ptn5150_dt_match,
}, },
.probe = ptn5150_i2c_probe, .probe_new = ptn5150_i2c_probe,
.id_table = ptn5150_i2c_id, .id_table = ptn5150_i2c_id,
}; };
module_i2c_driver(ptn5150_i2c_driver); module_i2c_driver(ptn5150_i2c_driver);
......
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