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

Input: qt1070 - 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>
Link: https://lore.kernel.org/r/20221118224540.619276-202-uwe@kleine-koenig.orgSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 2aa67748
...@@ -126,8 +126,7 @@ static irqreturn_t qt1070_interrupt(int irq, void *dev_id) ...@@ -126,8 +126,7 @@ static irqreturn_t qt1070_interrupt(int irq, void *dev_id)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
static int qt1070_probe(struct i2c_client *client, static int qt1070_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct qt1070_data *data; struct qt1070_data *data;
struct input_dev *input; struct input_dev *input;
...@@ -274,7 +273,7 @@ static struct i2c_driver qt1070_driver = { ...@@ -274,7 +273,7 @@ static struct i2c_driver qt1070_driver = {
.pm = &qt1070_pm_ops, .pm = &qt1070_pm_ops,
}, },
.id_table = qt1070_id, .id_table = qt1070_id,
.probe = qt1070_probe, .probe_new = qt1070_probe,
.remove = qt1070_remove, .remove = qt1070_remove,
}; };
......
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