Skip to content

Commit cb28f74

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/regulator/lp8755.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,7 @@ static const struct regmap_config lp8755_regmap = {
357357
.max_register = LP8755_REG_MAX,
358358
};
359359

360-
static int lp8755_probe(struct i2c_client *client,
361-
const struct i2c_device_id *id)
360+
static int lp8755_probe(struct i2c_client *client)
362361
{
363362
int ret, icnt;
364363
struct lp8755_chip *pchip;
@@ -442,7 +441,7 @@ static struct i2c_driver lp8755_i2c_driver = {
442441
.driver = {
443442
.name = LP8755_NAME,
444443
},
445-
.probe = lp8755_probe,
444+
.probe_new = lp8755_probe,
446445
.remove = lp8755_remove,
447446
.id_table = lp8755_id,
448447
};

0 commit comments

Comments
 (0)