projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bab90bb
)
mfd: max8925-i2c: Convert to i2c's .probe_new()
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Fri, 18 Nov 2022 22:42:57 +0000
(23:42 +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-444-uwe@kleine-koenig.org
drivers/mfd/max8925-i2c.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/max8925-i2c.c
b/drivers/mfd/max8925-i2c.c
index 04101da42bd314454756115481a1755ba1020f2c..7c3ec167f94177aea3004c47736f5a5bf8c9cc7a 100644
(file)
--- a/
drivers/mfd/max8925-i2c.c
+++ b/
drivers/mfd/max8925-i2c.c
@@
-144,8
+144,7
@@
static int max8925_dt_init(struct device_node *np, struct device *dev,
return 0;
}
-static int max8925_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int max8925_probe(struct i2c_client *client)
{
struct max8925_platform_data *pdata = dev_get_platdata(&client->dev);
struct max8925_chip *chip;
@@
-242,7
+241,7
@@
static struct i2c_driver max8925_driver = {
.pm = &max8925_pm_ops,
.of_match_table = max8925_dt_ids,
},
- .probe
= max8925_probe,
+ .probe
_new
= max8925_probe,
.remove = max8925_remove,
.id_table = max8925_id_table,
};