Commit f043ad51 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Dmitry Torokhov

Input: adp5588-keys - 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>
Acked-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Link: https://lore.kernel.org/r/20221118224540.619276-193-uwe@kleine-koenig.orgSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 37ab3d75
...@@ -718,8 +718,7 @@ static void adp5588_disable_regulator(void *reg) ...@@ -718,8 +718,7 @@ static void adp5588_disable_regulator(void *reg)
regulator_disable(reg); regulator_disable(reg);
} }
static int adp5588_probe(struct i2c_client *client, static int adp5588_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct adp5588_kpad *kpad; struct adp5588_kpad *kpad;
struct input_dev *input; struct input_dev *input;
...@@ -867,7 +866,7 @@ static struct i2c_driver adp5588_driver = { ...@@ -867,7 +866,7 @@ static struct i2c_driver adp5588_driver = {
.of_match_table = adp5588_of_match, .of_match_table = adp5588_of_match,
.pm = pm_sleep_ptr(&adp5588_dev_pm_ops), .pm = pm_sleep_ptr(&adp5588_dev_pm_ops),
}, },
.probe = adp5588_probe, .probe_new = adp5588_probe,
.remove = adp5588_remove, .remove = adp5588_remove,
.id_table = adp5588_id, .id_table = adp5588_id,
}; };
......
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