projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3a213d
)
extcon: sm5502: Implement i2c_driver->probe_new()
author
Stephan Gerhold
<stephan@gerhold.net>
Mon, 31 May 2021 13:34:34 +0000
(15:34 +0200)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Mon, 21 Jun 2021 09:28:01 +0000
(18:28 +0900)
sm5022_muic_i2c_probe() does not use the i2c_device_id,
so implement i2c_driver->probe_new() instead of probe().
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-sm5502.c
patch
|
blob
|
history
diff --git
a/drivers/extcon/extcon-sm5502.c
b/drivers/extcon/extcon-sm5502.c
index a1040c929237a1e18839f676f350e42ad85bba32..9f40bb9f1f81ddcaa9473a862b02795ff9b82a57 100644
(file)
--- a/
drivers/extcon/extcon-sm5502.c
+++ b/
drivers/extcon/extcon-sm5502.c
@@
-562,8
+562,7
@@
static void sm5502_init_dev_type(struct sm5502_muic_info *info)
}
}
-static int sm5022_muic_i2c_probe(struct i2c_client *i2c,
- const struct i2c_device_id *id)
+static int sm5022_muic_i2c_probe(struct i2c_client *i2c)
{
struct device_node *np = i2c->dev.of_node;
struct sm5502_muic_info *info;
@@
-703,7
+702,7
@@
static struct i2c_driver sm5502_muic_i2c_driver = {
.pm = &sm5502_muic_pm_ops,
.of_match_table = sm5502_dt_match,
},
- .probe
= sm5022_muic_i2c_probe,
+ .probe
_new
= sm5022_muic_i2c_probe,
.id_table = sm5502_i2c_id,
};