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

Input: hx83112b: 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-244-uwe@kleine-koenig.orgSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent d4be9206
...@@ -265,8 +265,7 @@ static irqreturn_t himax_irq_handler(int irq, void *dev_id) ...@@ -265,8 +265,7 @@ static irqreturn_t himax_irq_handler(int irq, void *dev_id)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
static int himax_probe(struct i2c_client *client, static int himax_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
int error; int error;
struct device *dev = &client->dev; struct device *dev = &client->dev;
...@@ -350,7 +349,7 @@ MODULE_DEVICE_TABLE(of, himax_of_match); ...@@ -350,7 +349,7 @@ MODULE_DEVICE_TABLE(of, himax_of_match);
#endif #endif
static struct i2c_driver himax_ts_driver = { static struct i2c_driver himax_ts_driver = {
.probe = himax_probe, .probe_new = himax_probe,
.id_table = himax_ts_id, .id_table = himax_ts_id,
.driver = { .driver = {
.name = "Himax-hx83112b-TS", .name = "Himax-hx83112b-TS",
......
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