summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-11-18 23:42:50 +0100
committerLee Jones <lee@kernel.org>2022-12-07 13:27:22 +0000
commit2034ef7458083eb92ce3f563cca883772118d8e2 (patch)
treee2fedb409a0dc5011a3c73425ca6938257ae310b /drivers/mfd
parent7ec69cc2aa0c6210f4617ec67ce438e3e429cf9c (diff)
downloadlinux-2034ef7458083eb92ce3f563cca883772118d8e2.tar.bz2
mfd: lp8788: 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-437-uwe@kleine-koenig.org
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/lp8788.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/lp8788.c b/drivers/mfd/lp8788.c
index 724a5712b36b..fe809b64147e 100644
--- a/drivers/mfd/lp8788.c
+++ b/drivers/mfd/lp8788.c
@@ -166,7 +166,7 @@ static const struct regmap_config lp8788_regmap_config = {
.max_register = MAX_LP8788_REGISTERS,
};
-static int lp8788_probe(struct i2c_client *cl, const struct i2c_device_id *id)
+static int lp8788_probe(struct i2c_client *cl)
{
struct lp8788 *lp;
struct lp8788_platform_data *pdata = dev_get_platdata(&cl->dev);
@@ -225,7 +225,7 @@ static struct i2c_driver lp8788_driver = {
.driver = {
.name = "lp8788",
},
- .probe = lp8788_probe,
+ .probe_new = lp8788_probe,
.remove = lp8788_remove,
.id_table = lp8788_ids,
};