projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1060552
)
mfd: menelaus: Convert to i2c's .probe_new()
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Fri, 18 Nov 2022 22:43:01 +0000
(23:43 +0100)
committer
Lee Jones
<lee@kernel.org>
Wed, 7 Dec 2022 13:27:23 +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>
Signed-off-by: Lee Jones <lee@kernel.org>
Link:
https://lore.kernel.org/r/20221118224540.619276-448-uwe@kleine-koenig.org
drivers/mfd/menelaus.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/menelaus.c
b/drivers/mfd/menelaus.c
index eb08f69001f91d2cb302676337698ee091cfef7c..c2866a11c1d22ac1de692a229906243fd51cf1e3 100644
(file)
--- a/
drivers/mfd/menelaus.c
+++ b/
drivers/mfd/menelaus.c
@@
-1142,8
+1142,7
@@
static inline void menelaus_rtc_init(struct menelaus_chip *m)
static struct i2c_driver menelaus_i2c_driver;
-static int menelaus_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int menelaus_probe(struct i2c_client *client)
{
struct menelaus_chip *menelaus;
int rev = 0;
@@
-1241,7
+1240,7
@@
static struct i2c_driver menelaus_i2c_driver = {
.driver = {
.name = DRIVER_NAME,
},
- .probe
= menelaus_probe,
+ .probe
_new
= menelaus_probe,
.remove = menelaus_remove,
.id_table = menelaus_id,
};