Skip to content

Commit f9ca07a

Browse files
committed
power: supply: sbs-battery: switch to i2c's probe_new
sbs-battery does not use the ID parameter, so switch to i2c's probe_new API. Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 03b758b commit f9ca07a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/power/supply/sbs-battery.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -992,8 +992,7 @@ static const struct power_supply_desc sbs_default_desc = {
992992
.external_power_changed = sbs_external_power_changed,
993993
};
994994

995-
static int sbs_probe(struct i2c_client *client,
996-
const struct i2c_device_id *id)
995+
static int sbs_probe(struct i2c_client *client)
997996
{
998997
struct sbs_info *chip;
999998
struct power_supply_desc *sbs_desc;
@@ -1172,7 +1171,7 @@ static const struct of_device_id sbs_dt_ids[] = {
11721171
MODULE_DEVICE_TABLE(of, sbs_dt_ids);
11731172

11741173
static struct i2c_driver sbs_battery_driver = {
1175-
.probe = sbs_probe,
1174+
.probe_new = sbs_probe,
11761175
.remove = sbs_remove,
11771176
.alert = sbs_alert,
11781177
.id_table = sbs_id,

0 commit comments

Comments
 (0)