Skip to content

Commit 8348c71

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/regulator/pfuze100-regulator.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -683,9 +683,9 @@ static const struct regmap_config pfuze_regmap_config = {
683683
.cache_type = REGCACHE_RBTREE,
684684
};
685685

686-
static int pfuze100_regulator_probe(struct i2c_client *client,
687-
const struct i2c_device_id *id)
686+
static int pfuze100_regulator_probe(struct i2c_client *client)
688687
{
688+
const struct i2c_device_id *id = i2c_client_get_device_id(client);
689689
struct pfuze_chip *pfuze_chip;
690690
struct regulator_config config = { };
691691
int i, ret;
@@ -847,7 +847,7 @@ static struct i2c_driver pfuze_driver = {
847847
.name = "pfuze100-regulator",
848848
.of_match_table = pfuze_dt_ids,
849849
},
850-
.probe = pfuze100_regulator_probe,
850+
.probe_new = pfuze100_regulator_probe,
851851
};
852852
module_i2c_driver(pfuze_driver);
853853

0 commit comments

Comments
 (0)