Skip to content

Commit 4e85e5d

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
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 <[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 dbf31da commit 4e85e5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/regulator/max8973-regulator.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,9 +586,9 @@ static const struct of_device_id of_max8973_match_tbl[] = {
586586
};
587587
MODULE_DEVICE_TABLE(of, of_max8973_match_tbl);
588588

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)
591590
{
591+
const struct i2c_device_id *id = i2c_client_get_device_id(client);
592592
struct max8973_regulator_platform_data *pdata;
593593
struct regulator_init_data *ridata;
594594
struct regulator_config config = { };
@@ -806,7 +806,7 @@ static struct i2c_driver max8973_i2c_driver = {
806806
.name = "max8973",
807807
.of_match_table = of_max8973_match_tbl,
808808
},
809-
.probe = max8973_probe,
809+
.probe_new = max8973_probe,
810810
.id_table = max8973_id,
811811
};
812812

0 commit comments

Comments
 (0)