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