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

authored by

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

+3 -3
+3 -3
drivers/regulator/pv88080-regulator.c
··· 374 374 /* 375 375 * I2C driver interface functions 376 376 */ 377 - static int pv88080_i2c_probe(struct i2c_client *i2c, 378 - const struct i2c_device_id *id) 377 + static int pv88080_i2c_probe(struct i2c_client *i2c) 379 378 { 379 + const struct i2c_device_id *id = i2c_client_get_device_id(i2c); 380 380 struct regulator_init_data *init_data = dev_get_platdata(&i2c->dev); 381 381 struct pv88080 *chip; 382 382 const struct pv88080_compatible_regmap *regmap_config; ··· 559 559 .name = "pv88080", 560 560 .of_match_table = of_match_ptr(pv88080_dt_ids), 561 561 }, 562 - .probe = pv88080_i2c_probe, 562 + .probe_new = pv88080_i2c_probe, 563 563 .id_table = pv88080_i2c_id, 564 564 }; 565 565