summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/bd9571mwv.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-11-18 23:42:38 +0100
committerLee Jones <lee@kernel.org>2022-12-07 14:27:20 +0100
commit4c023a6ec3a8911f2935da55ca0512d94bb289ab (patch)
tree4767c3fdd520ab25cf0962fd8e6d4b6f16b2127a /drivers/mfd/bd9571mwv.c
parentmfd: bcm590xx: Convert to i2c's .probe_new() (diff)
downloadlinux-4c023a6ec3a8911f2935da55ca0512d94bb289ab.tar.xz
linux-4c023a6ec3a8911f2935da55ca0512d94bb289ab.zip
mfd: bd9571mwv: 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> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20221118224540.619276-425-uwe@kleine-koenig.org
Diffstat (limited to 'drivers/mfd/bd9571mwv.c')
-rw-r--r--drivers/mfd/bd9571mwv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mfd/bd9571mwv.c b/drivers/mfd/bd9571mwv.c
index e15b1acfb063..60dc858c8117 100644
--- a/drivers/mfd/bd9571mwv.c
+++ b/drivers/mfd/bd9571mwv.c
@@ -204,8 +204,7 @@ static int bd957x_identify(struct device *dev, struct regmap *regmap)
return 0;
}
-static int bd9571mwv_probe(struct i2c_client *client,
- const struct i2c_device_id *ids)
+static int bd9571mwv_probe(struct i2c_client *client)
{
const struct regmap_config *regmap_config;
const struct regmap_irq_chip *irq_chip;
@@ -279,7 +278,7 @@ static struct i2c_driver bd9571mwv_driver = {
.name = "bd9571mwv",
.of_match_table = bd9571mwv_of_match_table,
},
- .probe = bd9571mwv_probe,
+ .probe_new = bd9571mwv_probe,
.id_table = bd9571mwv_id_table,
};
module_i2c_driver(bd9571mwv_driver);