Skip to content

Commit e347823

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
regulator: tps6286x-regulator: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it can be trivially converted. 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 d4885f3 commit e347823

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/regulator/tps6286x-regulator.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ static const struct of_device_id tps6286x_dt_ids[] = {
111111
};
112112
MODULE_DEVICE_TABLE(of, tps6286x_dt_ids);
113113

114-
static int tps6286x_i2c_probe(struct i2c_client *i2c,
115-
const struct i2c_device_id *id)
114+
static int tps6286x_i2c_probe(struct i2c_client *i2c)
116115
{
117116
struct device *dev = &i2c->dev;
118117
struct regulator_config config = {};
@@ -150,7 +149,7 @@ static struct i2c_driver tps6286x_regulator_driver = {
150149
.name = "tps6286x",
151150
.of_match_table = of_match_ptr(tps6286x_dt_ids),
152151
},
153-
.probe = tps6286x_i2c_probe,
152+
.probe_new = tps6286x_i2c_probe,
154153
.id_table = tps6286x_i2c_id,
155154
};
156155

0 commit comments

Comments
 (0)