Skip to content

Commit 78c8f6c

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
regulator: ltc3589: 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 87feccb commit 78c8f6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/regulator/ltc3589.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,9 @@ static irqreturn_t ltc3589_isr(int irq, void *dev_id)
378378
return IRQ_HANDLED;
379379
}
380380

381-
static int ltc3589_probe(struct i2c_client *client,
382-
const struct i2c_device_id *id)
381+
static int ltc3589_probe(struct i2c_client *client)
383382
{
383+
const struct i2c_device_id *id = i2c_client_get_device_id(client);
384384
struct device *dev = &client->dev;
385385
struct regulator_desc *descs;
386386
struct ltc3589 *ltc3589;
@@ -476,7 +476,7 @@ static struct i2c_driver ltc3589_driver = {
476476
.name = DRIVER_NAME,
477477
.of_match_table = of_match_ptr(ltc3589_of_match),
478478
},
479-
.probe = ltc3589_probe,
479+
.probe_new = ltc3589_probe,
480480
.id_table = ltc3589_i2c_id,
481481
};
482482
module_i2c_driver(ltc3589_driver);

0 commit comments

Comments
 (0)