projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61d1be2
)
mfd: aat2870-core: Convert to i2c's .probe_new()
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Fri, 18 Nov 2022 22:42:29 +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>
Signed-off-by: Lee Jones <lee@kernel.org>
Link:
https://lore.kernel.org/r/20221118224540.619276-416-uwe@kleine-koenig.org
drivers/mfd/aat2870-core.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/aat2870-core.c
b/drivers/mfd/aat2870-core.c
index a17cf759739d0f67911b0c7377b5404f2314f163..f096dc80b7543fe4846e9c3bd9e5decc4b6a04e6 100644
(file)
--- a/
drivers/mfd/aat2870-core.c
+++ b/
drivers/mfd/aat2870-core.c
@@
-332,8
+332,7
@@
static inline void aat2870_init_debugfs(struct aat2870_data *aat2870)
}
#endif /* CONFIG_DEBUG_FS */
-static int aat2870_i2c_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int aat2870_i2c_probe(struct i2c_client *client)
{
struct aat2870_platform_data *pdata = dev_get_platdata(&client->dev);
struct aat2870_data *aat2870;
@@
-454,7
+453,7
@@
static struct i2c_driver aat2870_i2c_driver = {
.pm = &aat2870_pm_ops,
.suppress_bind_attrs = true,
},
- .probe
= aat2870_i2c_probe,
+ .probe
_new
= aat2870_i2c_probe,
.id_table = aat2870_i2c_id_table,
};