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

authored by

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

+3 -3
+3 -3
drivers/regulator/isl6271a-regulator.c
··· 97 97 }, 98 98 }; 99 99 100 - static int isl6271a_probe(struct i2c_client *i2c, 101 - const struct i2c_device_id *id) 100 + static int isl6271a_probe(struct i2c_client *i2c) 102 101 { 102 + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); 103 103 struct regulator_dev *rdev; 104 104 struct regulator_config config = { }; 105 105 struct regulator_init_data *init_data = dev_get_platdata(&i2c->dev); ··· 148 148 .driver = { 149 149 .name = "isl6271a", 150 150 }, 151 - .probe = isl6271a_probe, 151 + .probe_new = isl6271a_probe, 152 152 .id_table = isl6271a_id, 153 153 }; 154 154