Skip to content

Commit 1880416

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
regulator: tps62360-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 4e85e5d commit 1880416

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/regulator/tps62360-regulator.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ static const struct of_device_id tps62360_of_match[] = {
322322
MODULE_DEVICE_TABLE(of, tps62360_of_match);
323323
#endif
324324

325-
static int tps62360_probe(struct i2c_client *client,
326-
const struct i2c_device_id *id)
325+
static int tps62360_probe(struct i2c_client *client)
327326
{
327+
const struct i2c_device_id *id = i2c_client_get_device_id(client);
328328
struct regulator_config config = { };
329329
struct tps62360_regulator_platform_data *pdata;
330330
struct regulator_dev *rdev;
@@ -497,7 +497,7 @@ static struct i2c_driver tps62360_i2c_driver = {
497497
.name = "tps62360",
498498
.of_match_table = of_match_ptr(tps62360_of_match),
499499
},
500-
.probe = tps62360_probe,
500+
.probe_new = tps62360_probe,
501501
.shutdown = tps62360_shutdown,
502502
.id_table = tps62360_id,
503503
};

0 commit comments

Comments
 (0)