projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ace2487
)
mfd: bd9571mwv: Convert to i2c's .probe_new()
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Fri, 18 Nov 2022 22:42:38 +0000
(23:42 +0100)
committer
Lee Jones
<lee@kernel.org>
Wed, 7 Dec 2022 13:27:20 +0000
(13:27 +0000)
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
drivers/mfd/bd9571mwv.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/bd9571mwv.c
b/drivers/mfd/bd9571mwv.c
index e15b1acfb06301d62ad3b501e8203610bb79c5e5..60dc858c8117a8075955aaced93db782a6456390 100644
(file)
--- 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);