Skip to content

Commit 6554256

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
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 <[email protected]> Acked-for-MFD-by: Lee Jones <[email protected]> Acked-for-Backlight-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 3d2a78a commit 6554256

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/regulator/fan53555.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,9 @@ static const struct of_device_id __maybe_unused fan53555_dt_ids[] = {
549549
};
550550
MODULE_DEVICE_TABLE(of, fan53555_dt_ids);
551551

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)
554553
{
554+
const struct i2c_device_id *id = i2c_client_get_device_id(client);
555555
struct device_node *np = client->dev.of_node;
556556
struct fan53555_device_info *di;
557557
struct fan53555_platform_data *pdata;
@@ -665,7 +665,7 @@ static struct i2c_driver fan53555_regulator_driver = {
665665
.name = "fan53555-regulator",
666666
.of_match_table = of_match_ptr(fan53555_dt_ids),
667667
},
668-
.probe = fan53555_regulator_probe,
668+
.probe_new = fan53555_regulator_probe,
669669
.id_table = fan53555_id,
670670
};
671671

0 commit comments

Comments
 (0)