Commit aaf5339e authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Sebastian Reichel

power: supply: bq24735: Convert to i2c's .probe_new()

The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 924668b4
...@@ -352,8 +352,7 @@ static struct bq24735_platform *bq24735_parse_dt_data(struct i2c_client *client) ...@@ -352,8 +352,7 @@ static struct bq24735_platform *bq24735_parse_dt_data(struct i2c_client *client)
return pdata; return pdata;
} }
static int bq24735_charger_probe(struct i2c_client *client, static int bq24735_charger_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
int ret; int ret;
struct bq24735 *charger; struct bq24735 *charger;
...@@ -506,7 +505,7 @@ static struct i2c_driver bq24735_charger_driver = { ...@@ -506,7 +505,7 @@ static struct i2c_driver bq24735_charger_driver = {
.name = "bq24735-charger", .name = "bq24735-charger",
.of_match_table = bq24735_match_ids, .of_match_table = bq24735_match_ids,
}, },
.probe = bq24735_charger_probe, .probe_new = bq24735_charger_probe,
.id_table = bq24735_charger_id, .id_table = bq24735_charger_id,
}; };
......
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