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

Input: ili210x - Convert to i2c's .probe_new()

.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221118224540.619276-246-uwe@kleine-koenig.orgSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent cb812d39
...@@ -913,9 +913,9 @@ static void ili210x_stop(void *data) ...@@ -913,9 +913,9 @@ static void ili210x_stop(void *data)
priv->stop = true; priv->stop = true;
} }
static int ili210x_i2c_probe(struct i2c_client *client, static int ili210x_i2c_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
const struct i2c_device_id *id = i2c_client_get_device_id(client);
struct device *dev = &client->dev; struct device *dev = &client->dev;
const struct ili2xxx_chip *chip; const struct ili2xxx_chip *chip;
struct ili210x *priv; struct ili210x *priv;
...@@ -1043,7 +1043,7 @@ static struct i2c_driver ili210x_ts_driver = { ...@@ -1043,7 +1043,7 @@ static struct i2c_driver ili210x_ts_driver = {
.of_match_table = ili210x_dt_ids, .of_match_table = ili210x_dt_ids,
}, },
.id_table = ili210x_i2c_id, .id_table = ili210x_i2c_id,
.probe = ili210x_i2c_probe, .probe_new = ili210x_i2c_probe,
}; };
module_i2c_driver(ili210x_ts_driver); module_i2c_driver(ili210x_ts_driver);
......
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