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

authored by

Uwe Kleine-König and committed by
Mark Brown
3b5b07dd 18804160

+3 -3
+3 -3
drivers/regulator/tps65023-regulator.c
··· 257 257 .core_regulator = TPS65023_DCDC_1, 258 258 }; 259 259 260 - static int tps_65023_probe(struct i2c_client *client, 261 - const struct i2c_device_id *id) 260 + static int tps_65023_probe(struct i2c_client *client) 262 261 { 262 + const struct i2c_device_id *id = i2c_client_get_device_id(client); 263 263 struct regulator_init_data *init_data = dev_get_platdata(&client->dev); 264 264 struct regulator_config config = { }; 265 265 struct tps_pmic *tps; ··· 336 336 .name = "tps65023", 337 337 .of_match_table = of_match_ptr(tps65023_of_match), 338 338 }, 339 - .probe = tps_65023_probe, 339 + .probe_new = tps_65023_probe, 340 340 .id_table = tps_65023_id, 341 341 }; 342 342