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

Input: zforce_ts - 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-268-uwe@kleine-koenig.orgSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent f8684ea5
...@@ -732,8 +732,7 @@ static struct zforce_ts_platdata *zforce_parse_dt(struct device *dev) ...@@ -732,8 +732,7 @@ static struct zforce_ts_platdata *zforce_parse_dt(struct device *dev)
return pdata; return pdata;
} }
static int zforce_probe(struct i2c_client *client, static int zforce_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
const struct zforce_ts_platdata *pdata = dev_get_platdata(&client->dev); const struct zforce_ts_platdata *pdata = dev_get_platdata(&client->dev);
struct zforce_ts *ts; struct zforce_ts *ts;
...@@ -945,7 +944,7 @@ static struct i2c_driver zforce_driver = { ...@@ -945,7 +944,7 @@ static struct i2c_driver zforce_driver = {
.pm = &zforce_pm_ops, .pm = &zforce_pm_ops,
.of_match_table = of_match_ptr(zforce_dt_idtable), .of_match_table = of_match_ptr(zforce_dt_idtable),
}, },
.probe = zforce_probe, .probe_new = zforce_probe,
.id_table = zforce_idtable, .id_table = zforce_idtable,
}; };
......
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