Skip to content

Commit

Permalink
extcon: sm5502: Implement i2c_driver->probe_new()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Chanwoo Choi <[email protected]>
  • Loading branch information
stephan-gh authored and chanwoochoi committed Jun 21, 2021
1 parent d3a213d commit b1b76af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/extcon/extcon-sm5502.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
};

Expand Down

0 comments on commit b1b76af

Please sign in to comment.