Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <u.kleine-koenig@pengutronix.de>
Acked-for-MFD-by: Lee Jones <lee@kernel.org>
Acked-for-Backlight-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221118224540.619276-554-uwe@kleine-koenig.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Uwe Kleine-König and committed by
Mark Brown
8348c710 69518d21

+3 -3
+3 -3
drivers/regulator/pfuze100-regulator.c
··· 683 683 .cache_type = REGCACHE_RBTREE, 684 684 }; 685 685 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) 688 687 { 688 + const struct i2c_device_id *id = i2c_client_get_device_id(client); 689 689 struct pfuze_chip *pfuze_chip; 690 690 struct regulator_config config = { }; 691 691 int i, ret; ··· 847 847 .name = "pfuze100-regulator", 848 848 .of_match_table = pfuze_dt_ids, 849 849 }, 850 - .probe = pfuze100_regulator_probe, 850 + .probe_new = pfuze100_regulator_probe, 851 851 }; 852 852 module_i2c_driver(pfuze_driver); 853 853