Skip to content

Commit 959ecba

Browse files
Uwe Kleine-Königlag-linaro
authored andcommitted
mfd: rohm-bd9576: 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/20221121102454.15664-1-u.kleine-koenig@pengutronix.de
1 parent 65f15e4 commit 959ecba

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/mfd/rohm-bd9576.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ static struct regmap_irq_chip bd9576_irq_chip = {
8888
.irq_reg_stride = 1,
8989
};
9090

91-
static int bd957x_i2c_probe(struct i2c_client *i2c,
92-
const struct i2c_device_id *id)
91+
static int bd957x_i2c_probe(struct i2c_client *i2c)
9392
{
9493
int ret;
9594
struct regmap *regmap;
@@ -180,7 +179,7 @@ static struct i2c_driver bd957x_drv = {
180179
.name = "rohm-bd957x",
181180
.of_match_table = bd957x_of_match,
182181
},
183-
.probe = &bd957x_i2c_probe,
182+
.probe_new = &bd957x_i2c_probe,
184183
};
185184
module_i2c_driver(bd957x_drv);
186185

0 commit comments

Comments
 (0)