Skip to content

Commit 3d54f7b

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/regulator/max1586.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@ static const struct of_device_id __maybe_unused max1586_of_match[] = {
207207
};
208208
MODULE_DEVICE_TABLE(of, max1586_of_match);
209209

210-
static int max1586_pmic_probe(struct i2c_client *client,
211-
const struct i2c_device_id *i2c_id)
210+
static int max1586_pmic_probe(struct i2c_client *client)
212211
{
213212
struct max1586_platform_data *pdata, pdata_of;
214213
struct regulator_config config = { };
@@ -290,7 +289,7 @@ static const struct i2c_device_id max1586_id[] = {
290289
MODULE_DEVICE_TABLE(i2c, max1586_id);
291290

292291
static struct i2c_driver max1586_pmic_driver = {
293-
.probe = max1586_pmic_probe,
292+
.probe_new = max1586_pmic_probe,
294293
.driver = {
295294
.name = "max1586",
296295
.of_match_table = of_match_ptr(max1586_of_match),

0 commit comments

Comments
 (0)