Skip to content

Commit c20c367

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/regulator/max8952.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,7 @@ static struct max8952_platform_data *max8952_parse_dt(struct device *dev)
171171
}
172172
#endif
173173

174-
static int max8952_pmic_probe(struct i2c_client *client,
175-
const struct i2c_device_id *i2c_id)
174+
static int max8952_pmic_probe(struct i2c_client *client)
176175
{
177176
struct i2c_adapter *adapter = client->adapter;
178177
struct max8952_platform_data *pdata = dev_get_platdata(&client->dev);
@@ -314,7 +313,7 @@ static const struct i2c_device_id max8952_ids[] = {
314313
MODULE_DEVICE_TABLE(i2c, max8952_ids);
315314

316315
static struct i2c_driver max8952_pmic_driver = {
317-
.probe = max8952_pmic_probe,
316+
.probe_new = max8952_pmic_probe,
318317
.driver = {
319318
.name = "max8952",
320319
.of_match_table = of_match_ptr(max8952_dt_match),

0 commit comments

Comments
 (0)