Skip to content

Commit 3b5b07d

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
regulator: tps65023-regulator: 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]> Acked-for-MFD-by: Lee Jones <[email protected]> Acked-for-Backlight-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 1880416 commit 3b5b07d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/regulator/tps65023-regulator.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ static struct tps_driver_data tps65023_drv_data = {
257257
.core_regulator = TPS65023_DCDC_1,
258258
};
259259

260-
static int tps_65023_probe(struct i2c_client *client,
261-
const struct i2c_device_id *id)
260+
static int tps_65023_probe(struct i2c_client *client)
262261
{
262+
const struct i2c_device_id *id = i2c_client_get_device_id(client);
263263
struct regulator_init_data *init_data = dev_get_platdata(&client->dev);
264264
struct regulator_config config = { };
265265
struct tps_pmic *tps;
@@ -336,7 +336,7 @@ static struct i2c_driver tps_65023_i2c_driver = {
336336
.name = "tps65023",
337337
.of_match_table = of_match_ptr(tps65023_of_match),
338338
},
339-
.probe = tps_65023_probe,
339+
.probe_new = tps_65023_probe,
340340
.id_table = tps_65023_id,
341341
};
342342

0 commit comments

Comments
 (0)