diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-11-18 23:43:16 +0100 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2022-12-07 13:27:25 +0000 |
commit | 39cabdc8fbc2b12b1a3cfd29af553ffe1ce06d1d (patch) | |
tree | 80474d593d63b4aa8f0ea2928b10b83eaadd9e95 /drivers/mfd | |
parent | 50b1d5bab4424169d8cc16853a5aa1140fe2bb78 (diff) |
mfd: stpmic1: 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-463-uwe@kleine-koenig.org
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/stpmic1.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mfd/stpmic1.c b/drivers/mfd/stpmic1.c index eb3da558c3fb..f5a51171b1b3 100644 --- a/drivers/mfd/stpmic1.c +++ b/drivers/mfd/stpmic1.c @@ -116,8 +116,7 @@ static const struct regmap_irq_chip stpmic1_regmap_irq_chip = { .num_irqs = ARRAY_SIZE(stpmic1_irqs), }; -static int stpmic1_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int stpmic1_probe(struct i2c_client *i2c) { struct stpmic1 *ddata; struct device *dev = &i2c->dev; @@ -203,7 +202,7 @@ static struct i2c_driver stpmic1_driver = { .of_match_table = of_match_ptr(stpmic1_of_match), .pm = &stpmic1_pm, }, - .probe = stpmic1_probe, + .probe_new = stpmic1_probe, }; module_i2c_driver(stpmic1_driver); |