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: act8865-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-539-uwe@kleine-koenig.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Uwe Kleine-König and committed by
Mark Brown
3d2a78ae dd0df58b

+3 -3
+3 -3
drivers/regulator/act8865-regulator.c
··· 651 651 return PTR_ERR_OR_ZERO(charger); 652 652 } 653 653 654 - static int act8865_pmic_probe(struct i2c_client *client, 655 - const struct i2c_device_id *i2c_id) 654 + static int act8865_pmic_probe(struct i2c_client *client) 656 655 { 656 + const struct i2c_device_id *i2c_id = i2c_client_get_device_id(client); 657 657 const struct regulator_desc *regulators; 658 658 struct act8865_platform_data *pdata = NULL; 659 659 struct device *dev = &client->dev; ··· 790 790 .driver = { 791 791 .name = "act8865", 792 792 }, 793 - .probe = act8865_pmic_probe, 793 + .probe_new = act8865_pmic_probe, 794 794 .id_table = act8865_ids, 795 795 }; 796 796