Skip to content

Commit 020cf73

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/regulator/da9121-regulator.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,8 +1128,7 @@ static inline int da9121_of_get_id(struct device *dev)
11281128
return (uintptr_t)id->data;
11291129
}
11301130

1131-
static int da9121_i2c_probe(struct i2c_client *i2c,
1132-
const struct i2c_device_id *id)
1131+
static int da9121_i2c_probe(struct i2c_client *i2c)
11331132
{
11341133
struct da9121 *chip;
11351134
const int mask_all[4] = { 0xFF, 0xFF, 0xFF, 0xFF };
@@ -1197,7 +1196,7 @@ static struct i2c_driver da9121_regulator_driver = {
11971196
.name = "da9121",
11981197
.of_match_table = of_match_ptr(da9121_dt_ids),
11991198
},
1200-
.probe = da9121_i2c_probe,
1199+
.probe_new = da9121_i2c_probe,
12011200
.remove = da9121_i2c_remove,
12021201
.id_table = da9121_i2c_id,
12031202
};

0 commit comments

Comments
 (0)