Skip to content

Commit

Permalink
mfd: Switch i2c drivers back to use .probe()
Browse files Browse the repository at this point in the history
After commit b8a1a4c ("i2c: Provide a temporary .probe_new()
call-back type"), all drivers being converted to .probe_new() and then
03c835f ("i2c: Switch .probe() to not take an id parameter") convert
back to (the new) .probe() to be able to eventually drop .probe_new() from
struct i2c_driver.

Signed-off-by: Uwe Kleine-König <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
  • Loading branch information
Uwe Kleine-König authored and lag-linaro committed Jun 15, 2023
1 parent 0c5dc50 commit 9816d85
Show file tree
Hide file tree
Showing 95 changed files with 95 additions and 95 deletions.
2 changes: 1 addition & 1 deletion drivers/mfd/88pm800.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ static struct i2c_driver pm800_driver = {
.name = "88PM800",
.pm = pm_sleep_ptr(&pm80x_pm_ops),
},
.probe_new = pm800_probe,
.probe = pm800_probe,
.remove = pm800_remove,
.id_table = pm80x_id_table,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/88pm805.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static struct i2c_driver pm805_driver = {
.name = "88PM805",
.pm = pm_sleep_ptr(&pm80x_pm_ops),
},
.probe_new = pm805_probe,
.probe = pm805_probe,
.remove = pm805_remove,
.id_table = pm80x_id_table,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/88pm860x-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ static struct i2c_driver pm860x_driver = {
.pm = pm_sleep_ptr(&pm860x_pm_ops),
.of_match_table = pm860x_dt_ids,
},
.probe_new = pm860x_probe,
.probe = pm860x_probe,
.remove = pm860x_remove,
.id_table = pm860x_id_table,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/aat2870-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ static struct i2c_driver aat2870_i2c_driver = {
.pm = pm_sleep_ptr(&aat2870_pm_ops),
.suppress_bind_attrs = true,
},
.probe_new = aat2870_i2c_probe,
.probe = aat2870_i2c_probe,
.id_table = aat2870_i2c_id_table,
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/acer-ec-a500.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ static struct i2c_driver a500_ec_driver = {
.name = "acer-a500-embedded-controller",
.of_match_table = a500_ec_match,
},
.probe_new = a500_ec_probe,
.probe = a500_ec_probe,
.remove = a500_ec_remove,
};
module_i2c_driver(a500_ec_driver);
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/act8945a.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static struct i2c_driver act8945a_i2c_driver = {
.name = "act8945a",
.of_match_table = of_match_ptr(act8945a_of_match),
},
.probe_new = act8945a_i2c_probe,
.probe = act8945a_i2c_probe,
.id_table = act8945a_i2c_id,
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/adp5520.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ static struct i2c_driver adp5520_driver = {
.pm = pm_sleep_ptr(&adp5520_pm),
.suppress_bind_attrs = true,
},
.probe_new = adp5520_probe,
.probe = adp5520_probe,
.id_table = adp5520_id,
};
builtin_i2c_driver(adp5520_driver);
2 changes: 1 addition & 1 deletion drivers/mfd/arizona-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static struct i2c_driver arizona_i2c_driver = {
.pm = pm_ptr(&arizona_pm_ops),
.of_match_table = of_match_ptr(arizona_i2c_of_match),
},
.probe_new = arizona_i2c_probe,
.probe = arizona_i2c_probe,
.remove = arizona_i2c_remove,
.id_table = arizona_i2c_id,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/as3711.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static struct i2c_driver as3711_i2c_driver = {
.name = "as3711",
.of_match_table = of_match_ptr(as3711_of_match),
},
.probe_new = as3711_i2c_probe,
.probe = as3711_i2c_probe,
.id_table = as3711_i2c_id,
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/as3722.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ static struct i2c_driver as3722_i2c_driver = {
.of_match_table = as3722_of_match,
.pm = &as3722_pm_ops,
},
.probe_new = as3722_i2c_probe,
.probe = as3722_i2c_probe,
.id_table = as3722_i2c_id,
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/atc260x-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static struct i2c_driver atc260x_i2c_driver = {
.name = "atc260x",
.of_match_table = atc260x_i2c_of_match,
},
.probe_new = atc260x_i2c_probe,
.probe = atc260x_i2c_probe,
};
module_i2c_driver(atc260x_i2c_driver);

Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/axp20x-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static struct i2c_driver axp20x_i2c_driver = {
.of_match_table = of_match_ptr(axp20x_i2c_of_match),
.acpi_match_table = ACPI_PTR(axp20x_i2c_acpi_match),
},
.probe_new = axp20x_i2c_probe,
.probe = axp20x_i2c_probe,
.remove = axp20x_i2c_remove,
.id_table = axp20x_i2c_id,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/bcm590xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static struct i2c_driver bcm590xx_i2c_driver = {
.name = "bcm590xx",
.of_match_table = bcm590xx_of_match,
},
.probe_new = bcm590xx_i2c_probe,
.probe = bcm590xx_i2c_probe,
.id_table = bcm590xx_i2c_id,
};
module_i2c_driver(bcm590xx_i2c_driver);
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/bd9571mwv.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ static struct i2c_driver bd9571mwv_driver = {
.name = "bd9571mwv",
.of_match_table = bd9571mwv_of_match_table,
},
.probe_new = bd9571mwv_probe,
.probe = bd9571mwv_probe,
.id_table = bd9571mwv_id_table,
};
module_i2c_driver(bd9571mwv_driver);
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/da903x.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ static struct i2c_driver da903x_driver = {
.driver = {
.name = "da903x",
},
.probe_new = da903x_probe,
.probe = da903x_probe,
.remove = da903x_remove,
.id_table = da903x_id_table,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/da9052-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ static void da9052_i2c_remove(struct i2c_client *client)
}

static struct i2c_driver da9052_i2c_driver = {
.probe_new = da9052_i2c_probe,
.probe = da9052_i2c_probe,
.remove = da9052_i2c_remove,
.id_table = da9052_i2c_id,
.driver = {
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/da9055-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static const struct of_device_id da9055_of_match[] = {
};

static struct i2c_driver da9055_i2c_driver = {
.probe_new = da9055_i2c_probe,
.probe = da9055_i2c_probe,
.remove = da9055_i2c_remove,
.id_table = da9055_i2c_id,
.driver = {
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/da9062-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ static struct i2c_driver da9062_i2c_driver = {
.name = "da9062",
.of_match_table = da9062_dt_ids,
},
.probe_new = da9062_i2c_probe,
.probe = da9062_i2c_probe,
.remove = da9062_i2c_remove,
.id_table = da9062_i2c_id,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/da9063-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ static struct i2c_driver da9063_i2c_driver = {
.name = "da9063",
.of_match_table = da9063_dt_ids,
},
.probe_new = da9063_i2c_probe,
.probe = da9063_i2c_probe,
.id_table = da9063_i2c_id,
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/da9150-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ static struct i2c_driver da9150_driver = {
.name = "da9150",
.of_match_table = da9150_of_match,
},
.probe_new = da9150_probe,
.probe = da9150_probe,
.remove = da9150_remove,
.shutdown = da9150_shutdown,
.id_table = da9150_i2c_id,
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/ene-kb3930.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ static const struct of_device_id kb3930_dt_ids[] = {
MODULE_DEVICE_TABLE(of, kb3930_dt_ids);

static struct i2c_driver kb3930_driver = {
.probe_new = kb3930_probe,
.probe = kb3930_probe,
.remove = kb3930_remove,
.driver = {
.name = "ene-kb3930",
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/gateworks-gsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ static struct i2c_driver gsc_driver = {
.name = "gateworks-gsc",
.of_match_table = gsc_of_match,
},
.probe_new = gsc_probe,
.probe = gsc_probe,
.remove = gsc_remove,
};
module_i2c_driver(gsc_driver);
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/intel_soc_pmic_chtdc_ti.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static struct i2c_driver chtdc_ti_i2c_driver = {
.pm = pm_sleep_ptr(&chtdc_ti_pm_ops),
.acpi_match_table = chtdc_ti_acpi_ids,
},
.probe_new = chtdc_ti_probe,
.probe = chtdc_ti_probe,
.shutdown = chtdc_ti_shutdown,
};
module_i2c_driver(chtdc_ti_i2c_driver);
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/intel_soc_pmic_chtwc.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ static struct i2c_driver cht_wc_driver = {
.pm = pm_sleep_ptr(&cht_wc_pm_ops),
.acpi_match_table = cht_wc_acpi_ids,
},
.probe_new = cht_wc_probe,
.probe = cht_wc_probe,
.shutdown = cht_wc_shutdown,
.id_table = cht_wc_i2c_id,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/intel_soc_pmic_crc.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ static struct i2c_driver crystal_cove_i2c_driver = {
.pm = pm_sleep_ptr(&crystal_cove_pm_ops),
.acpi_match_table = crystal_cove_acpi_match,
},
.probe_new = crystal_cove_i2c_probe,
.probe = crystal_cove_i2c_probe,
.remove = crystal_cove_i2c_remove,
.shutdown = crystal_cove_shutdown,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/iqs62x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ static struct i2c_driver iqs62x_i2c_driver = {
.of_match_table = iqs62x_of_match,
.pm = &iqs62x_pm,
},
.probe_new = iqs62x_probe,
.probe = iqs62x_probe,
.remove = iqs62x_remove,
};
module_i2c_driver(iqs62x_i2c_driver);
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/khadas-mcu.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static struct i2c_driver khadas_mcu_driver = {
.name = "khadas-mcu-core",
.of_match_table = of_match_ptr(khadas_mcu_of_match),
},
.probe_new = khadas_mcu_probe,
.probe = khadas_mcu_probe,
};
module_i2c_driver(khadas_mcu_driver);

Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/lm3533-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ static struct i2c_driver lm3533_i2c_driver = {
.name = "lm3533",
},
.id_table = lm3533_i2c_ids,
.probe_new = lm3533_i2c_probe,
.probe = lm3533_i2c_probe,
.remove = lm3533_i2c_remove,
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/lochnagar-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ static struct i2c_driver lochnagar_i2c_driver = {
.of_match_table = of_match_ptr(lochnagar_of_match),
.suppress_bind_attrs = true,
},
.probe_new = lochnagar_i2c_probe,
.probe = lochnagar_i2c_probe,
};

static int __init lochnagar_i2c_init(void)
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/lp3943.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ MODULE_DEVICE_TABLE(of, lp3943_of_match);
#endif

static struct i2c_driver lp3943_driver = {
.probe_new = lp3943_probe,
.probe = lp3943_probe,
.driver = {
.name = "lp3943",
.of_match_table = of_match_ptr(lp3943_of_match),
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/lp873x.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static struct i2c_driver lp873x_driver = {
.name = "lp873x",
.of_match_table = of_lp873x_match_table,
},
.probe_new = lp873x_probe,
.probe = lp873x_probe,
.id_table = lp873x_id_table,
};
module_i2c_driver(lp873x_driver);
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/lp87565.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static struct i2c_driver lp87565_driver = {
.name = "lp87565",
.of_match_table = of_lp87565_match_table,
},
.probe_new = lp87565_probe,
.probe = lp87565_probe,
.shutdown = lp87565_shutdown,
.id_table = lp87565_id_table,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/lp8788.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static struct i2c_driver lp8788_driver = {
.driver = {
.name = "lp8788",
},
.probe_new = lp8788_probe,
.probe = lp8788_probe,
.remove = lp8788_remove,
.id_table = lp8788_ids,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/madera-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static struct i2c_driver madera_i2c_driver = {
.pm = &madera_pm_ops,
.of_match_table = of_match_ptr(madera_of_match),
},
.probe_new = madera_i2c_probe,
.probe = madera_i2c_probe,
.remove = madera_i2c_remove,
.id_table = madera_i2c_id,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/max14577.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ static struct i2c_driver max14577_i2c_driver = {
.pm = pm_sleep_ptr(&max14577_pm),
.of_match_table = max14577_dt_match,
},
.probe_new = max14577_i2c_probe,
.probe = max14577_i2c_probe,
.remove = max14577_i2c_remove,
.id_table = max14577_i2c_id,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/max77620.c
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ static struct i2c_driver max77620_driver = {
.name = "max77620",
.pm = pm_sleep_ptr(&max77620_pm_ops),
},
.probe_new = max77620_probe,
.probe = max77620_probe,
.id_table = max77620_id,
};
builtin_i2c_driver(max77620_driver);
2 changes: 1 addition & 1 deletion drivers/mfd/max77650.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ static struct i2c_driver max77650_i2c_driver = {
.name = "max77650",
.of_match_table = max77650_of_match,
},
.probe_new = max77650_i2c_probe,
.probe = max77650_i2c_probe,
};
module_i2c_driver(max77650_i2c_driver);

Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/max77686.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ static struct i2c_driver max77686_i2c_driver = {
.pm = pm_sleep_ptr(&max77686_pm),
.of_match_table = max77686_pmic_dt_match,
},
.probe_new = max77686_i2c_probe,
.probe = max77686_i2c_probe,
};

module_i2c_driver(max77686_i2c_driver);
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/max77693.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ static struct i2c_driver max77693_i2c_driver = {
.pm = &max77693_pm,
.of_match_table = of_match_ptr(max77693_dt_match),
},
.probe_new = max77693_i2c_probe,
.probe = max77693_i2c_probe,
.remove = max77693_i2c_remove,
.id_table = max77693_i2c_id,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/max77714.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ static struct i2c_driver max77714_driver = {
.name = "max77714",
.of_match_table = max77714_dt_match,
},
.probe_new = max77714_probe,
.probe = max77714_probe,
};
module_i2c_driver(max77714_driver);

Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/max77843.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ static struct i2c_driver max77843_i2c_driver = {
.of_match_table = max77843_dt_match,
.suppress_bind_attrs = true,
},
.probe_new = max77843_probe,
.probe = max77843_probe,
.id_table = max77843_id,
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/max8907.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ static struct i2c_driver max8907_i2c_driver = {
.name = "max8907",
.of_match_table = of_match_ptr(max8907_of_match),
},
.probe_new = max8907_i2c_probe,
.probe = max8907_i2c_probe,
.remove = max8907_i2c_remove,
.id_table = max8907_i2c_id,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/max8925-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ static struct i2c_driver max8925_driver = {
.pm = pm_sleep_ptr(&max8925_pm_ops),
.of_match_table = max8925_dt_ids,
},
.probe_new = max8925_probe,
.probe = max8925_probe,
.remove = max8925_remove,
.id_table = max8925_id_table,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/max8997.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ static struct i2c_driver max8997_i2c_driver = {
.suppress_bind_attrs = true,
.of_match_table = of_match_ptr(max8997_pmic_dt_match),
},
.probe_new = max8997_i2c_probe,
.probe = max8997_i2c_probe,
.id_table = max8997_i2c_id,
};

Expand Down
Loading

0 comments on commit 9816d85

Please sign in to comment.