summaryrefslogtreecommitdiff
path: root/drivers/mfd/lp3943.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-11-18 23:42:47 +0100
committerLee Jones <lee@kernel.org>2022-12-07 13:27:21 +0000
commitf7b497cb3e14b7d61caf47e8ba7cdc0eb8fde0a4 (patch)
treec8371c49756b7b7d7a807b7189bb468d59468e0d /drivers/mfd/lp3943.c
parentdaf811fc4873af4a1facbe919526880b72c42a54 (diff)
mfd: lp3943: 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 <u.kleine-koenig@pengutronix.de> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20221118224540.619276-434-uwe@kleine-koenig.org
Diffstat (limited to 'drivers/mfd/lp3943.c')
-rw-r--r--drivers/mfd/lp3943.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/lp3943.c b/drivers/mfd/lp3943.c
index 13cb89be3d66..f9f39b53d030 100644
--- a/drivers/mfd/lp3943.c
+++ b/drivers/mfd/lp3943.c
@@ -102,7 +102,7 @@ static const struct regmap_config lp3943_regmap_config = {
.max_register = LP3943_MAX_REGISTERS,
};
-static int lp3943_probe(struct i2c_client *cl, const struct i2c_device_id *id)
+static int lp3943_probe(struct i2c_client *cl)
{
struct lp3943 *lp3943;
struct device *dev = &cl->dev;
@@ -140,7 +140,7 @@ MODULE_DEVICE_TABLE(of, lp3943_of_match);
#endif
static struct i2c_driver lp3943_driver = {
- .probe = lp3943_probe,
+ .probe_new = lp3943_probe,
.driver = {
.name = "lp3943",
.of_match_table = of_match_ptr(lp3943_of_match),