summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-11-18 23:43:08 +0100
committerLee Jones <lee@kernel.org>2022-12-07 13:27:24 +0000
commit6816c54bdd95e8c35103b88bef3c75e699ff587b (patch)
tree1039fff412c30387cf4b47e1da1789e3ae7ad84e /drivers/mfd
parent8416360935b9b632a517503eac6e320cbd5f310a (diff)
downloadlinux-6816c54bdd95e8c35103b88bef3c75e699ff587b.tar.bz2
mfd: rohm-bd718x7: 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> Acked-by: Matti Vaittinen <mazziesaccount@gmail.com> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20221118224540.619276-455-uwe@kleine-koenig.org
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/rohm-bd718x7.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mfd/rohm-bd718x7.c b/drivers/mfd/rohm-bd718x7.c
index bfd81f78beae..3c766cb15a24 100644
--- a/drivers/mfd/rohm-bd718x7.c
+++ b/drivers/mfd/rohm-bd718x7.c
@@ -127,8 +127,7 @@ static int bd718xx_init_press_duration(struct regmap *regmap,
return 0;
}
-static int bd718xx_i2c_probe(struct i2c_client *i2c,
- const struct i2c_device_id *id)
+static int bd718xx_i2c_probe(struct i2c_client *i2c)
{
struct regmap *regmap;
struct regmap_irq_chip_data *irq_data;
@@ -215,7 +214,7 @@ static struct i2c_driver bd718xx_i2c_driver = {
.name = "rohm-bd718x7",
.of_match_table = bd718xx_of_match,
},
- .probe = bd718xx_i2c_probe,
+ .probe_new = bd718xx_i2c_probe,
};
static int __init bd718xx_i2c_init(void)