Commit fb53f666 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Lee Jones

mfd: aat2870-core: Convert to i2c's .probe_new()

The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221118224540.619276-416-uwe@kleine-koenig.org
parent 61d1be25
...@@ -332,8 +332,7 @@ static inline void aat2870_init_debugfs(struct aat2870_data *aat2870) ...@@ -332,8 +332,7 @@ static inline void aat2870_init_debugfs(struct aat2870_data *aat2870)
} }
#endif /* CONFIG_DEBUG_FS */ #endif /* CONFIG_DEBUG_FS */
static int aat2870_i2c_probe(struct i2c_client *client, static int aat2870_i2c_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct aat2870_platform_data *pdata = dev_get_platdata(&client->dev); struct aat2870_platform_data *pdata = dev_get_platdata(&client->dev);
struct aat2870_data *aat2870; struct aat2870_data *aat2870;
...@@ -454,7 +453,7 @@ static struct i2c_driver aat2870_i2c_driver = { ...@@ -454,7 +453,7 @@ static struct i2c_driver aat2870_i2c_driver = {
.pm = &aat2870_pm_ops, .pm = &aat2870_pm_ops,
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = aat2870_i2c_probe, .probe_new = aat2870_i2c_probe,
.id_table = aat2870_i2c_id_table, .id_table = aat2870_i2c_id_table,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment