Skip to content

Commit 3cf4417

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
regulator: max8649: 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 3d54f7b commit 3cf4417

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/regulator/max8649.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ static const struct regmap_config max8649_regmap_config = {
145145
.val_bits = 8,
146146
};
147147

148-
static int max8649_regulator_probe(struct i2c_client *client,
149-
const struct i2c_device_id *id)
148+
static int max8649_regulator_probe(struct i2c_client *client)
150149
{
151150
struct max8649_platform_data *pdata = dev_get_platdata(&client->dev);
152151
struct max8649_regulator_info *info = NULL;
@@ -247,7 +246,7 @@ static const struct i2c_device_id max8649_id[] = {
247246
MODULE_DEVICE_TABLE(i2c, max8649_id);
248247

249248
static struct i2c_driver max8649_driver = {
250-
.probe = max8649_regulator_probe,
249+
.probe_new = max8649_regulator_probe,
251250
.driver = {
252251
.name = "max8649",
253252
},

0 commit comments

Comments
 (0)