summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-11-18 23:42:48 +0100
committerLee Jones <lee@kernel.org>2022-12-07 13:27:22 +0000
commit4acb5992aa3dcf22ed16923d92e0053a73e1a9f4 (patch)
tree8be15036534b3c8f13b1235ca2cc79648e9a4f0c /drivers
parentf7b497cb3e14b7d61caf47e8ba7cdc0eb8fde0a4 (diff)
downloadlinux-4acb5992aa3dcf22ed16923d92e0053a73e1a9f4.tar.bz2
mfd: lp873x: 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-435-uwe@kleine-koenig.org
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mfd/lp873x.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mfd/lp873x.c b/drivers/mfd/lp873x.c
index b6166dec492d..c81c5c9ad748 100644
--- a/drivers/mfd/lp873x.c
+++ b/drivers/mfd/lp873x.c
@@ -24,8 +24,7 @@ static const struct mfd_cell lp873x_cells[] = {
{ .name = "lp873x-gpio", },
};
-static int lp873x_probe(struct i2c_client *client,
- const struct i2c_device_id *ids)
+static int lp873x_probe(struct i2c_client *client)
{
struct lp873x *lp873;
int ret;
@@ -79,7 +78,7 @@ static struct i2c_driver lp873x_driver = {
.name = "lp873x",
.of_match_table = of_lp873x_match_table,
},
- .probe = lp873x_probe,
+ .probe_new = lp873x_probe,
.id_table = lp873x_id_table,
};
module_i2c_driver(lp873x_driver);