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 <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
Uwe Kleine-König 2022-11-18 23:44:27 +01:00 committed by Sebastian Reichel
parent ef3f6e07d5
commit 02d1a40141
1 changed files with 3 additions and 3 deletions

View File

@ -315,9 +315,9 @@ static void sbsm_del_mux_adapter(void *data)
i2c_mux_del_adapters(sbsm->muxc); i2c_mux_del_adapters(sbsm->muxc);
} }
static int sbsm_probe(struct i2c_client *client, static int sbsm_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
const struct i2c_device_id *id = i2c_client_get_device_id(client);
struct i2c_adapter *adapter = client->adapter; struct i2c_adapter *adapter = client->adapter;
struct sbsm_data *data; struct sbsm_data *data;
struct device *dev = &client->dev; struct device *dev = &client->dev;
@ -409,7 +409,7 @@ static struct i2c_driver sbsm_driver = {
.name = "sbsm", .name = "sbsm",
.of_match_table = of_match_ptr(sbsm_dt_ids), .of_match_table = of_match_ptr(sbsm_dt_ids),
}, },
.probe = sbsm_probe, .probe_new = sbsm_probe,
.alert = sbsm_alert, .alert = sbsm_alert,
.id_table = sbsm_ids .id_table = sbsm_ids
}; };