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

authored by

Uwe Kleine-König and committed by
Mark Brown
18804160 4e85e5d6

+3 -3
+3 -3
drivers/regulator/tps62360-regulator.c
··· 322 322 MODULE_DEVICE_TABLE(of, tps62360_of_match); 323 323 #endif 324 324 325 - static int tps62360_probe(struct i2c_client *client, 326 - const struct i2c_device_id *id) 325 + static int tps62360_probe(struct i2c_client *client) 327 326 { 327 + const struct i2c_device_id *id = i2c_client_get_device_id(client); 328 328 struct regulator_config config = { }; 329 329 struct tps62360_regulator_platform_data *pdata; 330 330 struct regulator_dev *rdev; ··· 497 497 .name = "tps62360", 498 498 .of_match_table = of_match_ptr(tps62360_of_match), 499 499 }, 500 - .probe = tps62360_probe, 500 + .probe_new = tps62360_probe, 501 501 .shutdown = tps62360_shutdown, 502 502 .id_table = tps62360_id, 503 503 };