Skip to content

Commit c9f9ef1

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
regulator: pv88080-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 8348c71 commit c9f9ef1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/regulator/pv88080-regulator.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,9 @@ static irqreturn_t pv88080_irq_handler(int irq, void *data)
374374
/*
375375
* I2C driver interface functions
376376
*/
377-
static int pv88080_i2c_probe(struct i2c_client *i2c,
378-
const struct i2c_device_id *id)
377+
static int pv88080_i2c_probe(struct i2c_client *i2c)
379378
{
379+
const struct i2c_device_id *id = i2c_client_get_device_id(i2c);
380380
struct regulator_init_data *init_data = dev_get_platdata(&i2c->dev);
381381
struct pv88080 *chip;
382382
const struct pv88080_compatible_regmap *regmap_config;
@@ -559,7 +559,7 @@ static struct i2c_driver pv88080_regulator_driver = {
559559
.name = "pv88080",
560560
.of_match_table = of_match_ptr(pv88080_dt_ids),
561561
},
562-
.probe = pv88080_i2c_probe,
562+
.probe_new = pv88080_i2c_probe,
563563
.id_table = pv88080_i2c_id,
564564
};
565565

0 commit comments

Comments
 (0)