Skip to content

Commit 2532d5f

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
regulator: lp3972: 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 020cf73 commit 2532d5f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/regulator/lp3972.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,7 @@ static int setup_regulators(struct lp3972 *lp3972,
495495
return 0;
496496
}
497497

498-
static int lp3972_i2c_probe(struct i2c_client *i2c,
499-
const struct i2c_device_id *id)
498+
static int lp3972_i2c_probe(struct i2c_client *i2c)
500499
{
501500
struct lp3972 *lp3972;
502501
struct lp3972_platform_data *pdata = dev_get_platdata(&i2c->dev);
@@ -547,7 +546,7 @@ static struct i2c_driver lp3972_i2c_driver = {
547546
.driver = {
548547
.name = "lp3972",
549548
},
550-
.probe = lp3972_i2c_probe,
549+
.probe_new = lp3972_i2c_probe,
551550
.id_table = lp3972_i2c_id,
552551
};
553552

0 commit comments

Comments
 (0)