mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
regulator: Switch i2c drivers back to use .probe()
After commitb8a1a4cd5a("i2c: Provide a temporary .probe_new() call-back type"), all drivers being converted to .probe_new() and then03c835f498("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 <u.kleine-koenig@pengutronix.de Link: https://lore.kernel.org/r/20230505220218.1239542-1-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org
This commit is contained in:
committed by
Mark Brown
parent
ac9a78681b
commit
964e186547
@@ -104,7 +104,7 @@ static struct i2c_driver pg86x_regulator_driver = {
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
.of_match_table = of_match_ptr(pg86x_dt_ids),
|
||||
},
|
||||
.probe_new = pg86x_i2c_probe,
|
||||
.probe = pg86x_i2c_probe,
|
||||
.id_table = pg86x_i2c_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -791,7 +791,7 @@ static struct i2c_driver act8865_pmic_driver = {
|
||||
.name = "act8865",
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
},
|
||||
.probe_new = act8865_pmic_probe,
|
||||
.probe = act8865_pmic_probe,
|
||||
.id_table = act8865_ids,
|
||||
};
|
||||
|
||||
|
||||
@@ -254,7 +254,7 @@ static int ad5398_probe(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static struct i2c_driver ad5398_driver = {
|
||||
.probe_new = ad5398_probe,
|
||||
.probe = ad5398_probe,
|
||||
.driver = {
|
||||
.name = "ad5398",
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
|
||||
@@ -1197,7 +1197,7 @@ static struct i2c_driver da9121_regulator_driver = {
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
.of_match_table = of_match_ptr(da9121_dt_ids),
|
||||
},
|
||||
.probe_new = da9121_i2c_probe,
|
||||
.probe = da9121_i2c_probe,
|
||||
.remove = da9121_i2c_remove,
|
||||
.id_table = da9121_i2c_id,
|
||||
};
|
||||
|
||||
@@ -224,7 +224,7 @@ static struct i2c_driver da9210_regulator_driver = {
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
.of_match_table = of_match_ptr(da9210_dt_ids),
|
||||
},
|
||||
.probe_new = da9210_i2c_probe,
|
||||
.probe = da9210_i2c_probe,
|
||||
.id_table = da9210_i2c_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -555,7 +555,7 @@ static struct i2c_driver da9211_regulator_driver = {
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
.of_match_table = of_match_ptr(da9211_dt_ids),
|
||||
},
|
||||
.probe_new = da9211_i2c_probe,
|
||||
.probe = da9211_i2c_probe,
|
||||
.id_table = da9211_i2c_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -775,7 +775,7 @@ static struct i2c_driver fan53555_regulator_driver = {
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
.of_match_table = of_match_ptr(fan53555_dt_ids),
|
||||
},
|
||||
.probe_new = fan53555_regulator_probe,
|
||||
.probe = fan53555_regulator_probe,
|
||||
.id_table = fan53555_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -175,7 +175,7 @@ static struct i2c_driver fan53880_regulator_driver = {
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
.of_match_table = fan53880_dt_ids,
|
||||
},
|
||||
.probe_new = fan53880_i2c_probe,
|
||||
.probe = fan53880_i2c_probe,
|
||||
.id_table = fan53880_i2c_id,
|
||||
};
|
||||
module_i2c_driver(fan53880_regulator_driver);
|
||||
|
||||
@@ -149,7 +149,7 @@ static struct i2c_driver isl6271a_i2c_driver = {
|
||||
.name = "isl6271a",
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
},
|
||||
.probe_new = isl6271a_probe,
|
||||
.probe = isl6271a_probe,
|
||||
.id_table = isl6271a_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -198,7 +198,7 @@ static struct i2c_driver isl9305_regulator_driver = {
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
.of_match_table = of_match_ptr(isl9305_dt_ids),
|
||||
},
|
||||
.probe_new = isl9305_i2c_probe,
|
||||
.probe = isl9305_i2c_probe,
|
||||
.id_table = isl9305_i2c_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -449,7 +449,7 @@ static struct i2c_driver lp3971_i2c_driver = {
|
||||
.name = "LP3971",
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
},
|
||||
.probe_new = lp3971_i2c_probe,
|
||||
.probe = lp3971_i2c_probe,
|
||||
.id_table = lp3971_i2c_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -547,7 +547,7 @@ static struct i2c_driver lp3972_i2c_driver = {
|
||||
.name = "lp3972",
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
},
|
||||
.probe_new = lp3972_i2c_probe,
|
||||
.probe = lp3972_i2c_probe,
|
||||
.id_table = lp3972_i2c_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -947,7 +947,7 @@ static struct i2c_driver lp872x_driver = {
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
.of_match_table = of_match_ptr(lp872x_dt_ids),
|
||||
},
|
||||
.probe_new = lp872x_probe,
|
||||
.probe = lp872x_probe,
|
||||
.id_table = lp872x_ids,
|
||||
};
|
||||
|
||||
|
||||
@@ -442,7 +442,7 @@ static struct i2c_driver lp8755_i2c_driver = {
|
||||
.name = LP8755_NAME,
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
},
|
||||
.probe_new = lp8755_probe,
|
||||
.probe = lp8755_probe,
|
||||
.remove = lp8755_remove,
|
||||
.id_table = lp8755_id,
|
||||
};
|
||||
|
||||
@@ -477,7 +477,7 @@ static struct i2c_driver ltc3589_driver = {
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
.of_match_table = of_match_ptr(ltc3589_of_match),
|
||||
},
|
||||
.probe_new = ltc3589_probe,
|
||||
.probe = ltc3589_probe,
|
||||
.id_table = ltc3589_i2c_id,
|
||||
};
|
||||
module_i2c_driver(ltc3589_driver);
|
||||
|
||||
@@ -374,7 +374,7 @@ static struct i2c_driver ltc3676_driver = {
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
.of_match_table = of_match_ptr(ltc3676_of_match),
|
||||
},
|
||||
.probe_new = ltc3676_regulator_probe,
|
||||
.probe = ltc3676_regulator_probe,
|
||||
.id_table = ltc3676_i2c_id,
|
||||
};
|
||||
module_i2c_driver(ltc3676_driver);
|
||||
|
||||
@@ -289,7 +289,7 @@ static const struct i2c_device_id max1586_id[] = {
|
||||
MODULE_DEVICE_TABLE(i2c, max1586_id);
|
||||
|
||||
static struct i2c_driver max1586_pmic_driver = {
|
||||
.probe_new = max1586_pmic_probe,
|
||||
.probe = max1586_pmic_probe,
|
||||
.driver = {
|
||||
.name = "max1586",
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
|
||||
@@ -323,7 +323,7 @@ static struct i2c_driver max20086_regulator_driver = {
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
.of_match_table = of_match_ptr(max20086_dt_ids),
|
||||
},
|
||||
.probe_new = max20086_i2c_probe,
|
||||
.probe = max20086_i2c_probe,
|
||||
.id_table = max20086_i2c_id,
|
||||
};
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ static struct i2c_driver max20411_i2c_driver = {
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
.of_match_table = of_max20411_match_tbl,
|
||||
},
|
||||
.probe_new = max20411_probe,
|
||||
.probe = max20411_probe,
|
||||
.id_table = max20411_id,
|
||||
};
|
||||
module_i2c_driver(max20411_i2c_driver);
|
||||
|
||||
@@ -292,7 +292,7 @@ static struct i2c_driver max77826_regulator_driver = {
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
.of_match_table = of_match_ptr(max77826_of_match),
|
||||
},
|
||||
.probe_new = max77826_i2c_probe,
|
||||
.probe = max77826_i2c_probe,
|
||||
.id_table = max77826_id,
|
||||
};
|
||||
module_i2c_driver(max77826_regulator_driver);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user