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

authored by

Uwe Kleine-König and committed by
Mark Brown
65542565 3d2a78ae

+3 -3
+3 -3
drivers/regulator/fan53555.c
··· 549 549 }; 550 550 MODULE_DEVICE_TABLE(of, fan53555_dt_ids); 551 551 552 - static int fan53555_regulator_probe(struct i2c_client *client, 553 - const struct i2c_device_id *id) 552 + static int fan53555_regulator_probe(struct i2c_client *client) 554 553 { 554 + const struct i2c_device_id *id = i2c_client_get_device_id(client); 555 555 struct device_node *np = client->dev.of_node; 556 556 struct fan53555_device_info *di; 557 557 struct fan53555_platform_data *pdata; ··· 665 665 .name = "fan53555-regulator", 666 666 .of_match_table = of_match_ptr(fan53555_dt_ids), 667 667 }, 668 - .probe = fan53555_regulator_probe, 668 + .probe_new = fan53555_regulator_probe, 669 669 .id_table = fan53555_id, 670 670 }; 671 671