Skip to content

Commit d4885f3

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
regulator: tps51632-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 d85d02d commit d4885f3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/regulator/tps51632-regulator.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ static struct tps51632_regulator_platform_data *
247247
}
248248
#endif
249249

250-
static int tps51632_probe(struct i2c_client *client,
251-
const struct i2c_device_id *id)
250+
static int tps51632_probe(struct i2c_client *client)
252251
{
253252
struct tps51632_regulator_platform_data *pdata;
254253
struct regulator_dev *rdev;
@@ -354,7 +353,7 @@ static struct i2c_driver tps51632_i2c_driver = {
354353
.name = "tps51632",
355354
.of_match_table = of_match_ptr(tps51632_of_match),
356355
},
357-
.probe = tps51632_probe,
356+
.probe_new = tps51632_probe,
358357
.id_table = tps51632_id,
359358
};
360359

0 commit comments

Comments
 (0)