summaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/bq24735-charger.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-11-18 23:44:11 +0100
committerSebastian Reichel <sebastian.reichel@collabora.com>2022-11-20 20:12:16 +0100
commitaaf5339e295baaee2b03c2dc45ac9dc8c2573a76 (patch)
tree8eb555cd69783e550f6adb995758365a79e2ed4b /drivers/power/supply/bq24735-charger.c
parentpower: supply: bq24257: Convert to i2c's .probe_new() (diff)
downloadlinux-aaf5339e295baaee2b03c2dc45ac9dc8c2573a76.tar.xz
linux-aaf5339e295baaee2b03c2dc45ac9dc8c2573a76.zip
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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/bq24735-charger.c')
-rw-r--r--drivers/power/supply/bq24735-charger.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/power/supply/bq24735-charger.c b/drivers/power/supply/bq24735-charger.c
index 3ce36d09c017..cfca3a82d5a8 100644
--- a/drivers/power/supply/bq24735-charger.c
+++ b/drivers/power/supply/bq24735-charger.c
@@ -352,8 +352,7 @@ static struct bq24735_platform *bq24735_parse_dt_data(struct i2c_client *client)
return pdata;
}
-static int bq24735_charger_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int bq24735_charger_probe(struct i2c_client *client)
{
int ret;
struct bq24735 *charger;
@@ -506,7 +505,7 @@ static struct i2c_driver bq24735_charger_driver = {
.name = "bq24735-charger",
.of_match_table = bq24735_match_ids,
},
- .probe = bq24735_charger_probe,
+ .probe_new = bq24735_charger_probe,
.id_table = bq24735_charger_id,
};