projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65f15e4
)
mfd: rohm-bd9576: Convert to i2c's .probe_new()
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Mon, 21 Nov 2022 10:24:54 +0000
(11:24 +0100)
committer
Lee Jones
<lee@kernel.org>
Thu, 8 Dec 2022 12:36:49 +0000
(12:36 +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/20221121102454.15664-1-u.kleine-koenig@pengutronix.de
drivers/mfd/rohm-bd9576.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/rohm-bd9576.c
b/drivers/mfd/rohm-bd9576.c
index
f37cd4f
..
c854ab5
100644
(file)
--- a/
drivers/mfd/rohm-bd9576.c
+++ b/
drivers/mfd/rohm-bd9576.c
@@
-88,8
+88,7
@@
static struct regmap_irq_chip bd9576_irq_chip = {
.irq_reg_stride = 1,
};
-static int bd957x_i2c_probe(struct i2c_client *i2c,
- const struct i2c_device_id *id)
+static int bd957x_i2c_probe(struct i2c_client *i2c)
{
int ret;
struct regmap *regmap;
@@
-180,7
+179,7
@@
static struct i2c_driver bd957x_drv = {
.name = "rohm-bd957x",
.of_match_table = bd957x_of_match,
},
- .probe = &bd957x_i2c_probe,
+ .probe
_new
= &bd957x_i2c_probe,
};
module_i2c_driver(bd957x_drv);