Skip to content

Commit 02d1a40

Browse files
Uwe Kleine-Königsre
authored andcommitted
power: supply: sbs-manager: Convert to i2c's .probe_new()
.probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent ef3f6e0 commit 02d1a40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/power/supply/sbs-manager.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ static void sbsm_del_mux_adapter(void *data)
315315
i2c_mux_del_adapters(sbsm->muxc);
316316
}
317317

318-
static int sbsm_probe(struct i2c_client *client,
319-
const struct i2c_device_id *id)
318+
static int sbsm_probe(struct i2c_client *client)
320319
{
320+
const struct i2c_device_id *id = i2c_client_get_device_id(client);
321321
struct i2c_adapter *adapter = client->adapter;
322322
struct sbsm_data *data;
323323
struct device *dev = &client->dev;
@@ -409,7 +409,7 @@ static struct i2c_driver sbsm_driver = {
409409
.name = "sbsm",
410410
.of_match_table = of_match_ptr(sbsm_dt_ids),
411411
},
412-
.probe = sbsm_probe,
412+
.probe_new = sbsm_probe,
413413
.alert = sbsm_alert,
414414
.id_table = sbsm_ids
415415
};

0 commit comments

Comments
 (0)