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

authored by

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

+3 -3
+3 -3
drivers/regulator/max8973-regulator.c
··· 586 586 }; 587 587 MODULE_DEVICE_TABLE(of, of_max8973_match_tbl); 588 588 589 - static int max8973_probe(struct i2c_client *client, 590 - const struct i2c_device_id *id) 589 + static int max8973_probe(struct i2c_client *client) 591 590 { 591 + const struct i2c_device_id *id = i2c_client_get_device_id(client); 592 592 struct max8973_regulator_platform_data *pdata; 593 593 struct regulator_init_data *ridata; 594 594 struct regulator_config config = { }; ··· 806 806 .name = "max8973", 807 807 .of_match_table = of_max8973_match_tbl, 808 808 }, 809 - .probe = max8973_probe, 809 + .probe_new = max8973_probe, 810 810 .id_table = max8973_id, 811 811 }; 812 812