Input: synaptics_i2c - 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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20221118224540.619276-223-uwe@kleine-koenig.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
fbe2715cbc
commit
05b2456d9d
|
@ -521,8 +521,7 @@ static struct synaptics_i2c *synaptics_i2c_touch_create(struct i2c_client *clien
|
||||||
return touch;
|
return touch;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int synaptics_i2c_probe(struct i2c_client *client,
|
static int synaptics_i2c_probe(struct i2c_client *client)
|
||||||
const struct i2c_device_id *dev_id)
|
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
struct synaptics_i2c *touch;
|
struct synaptics_i2c *touch;
|
||||||
|
@ -651,7 +650,7 @@ static struct i2c_driver synaptics_i2c_driver = {
|
||||||
.pm = &synaptics_i2c_pm,
|
.pm = &synaptics_i2c_pm,
|
||||||
},
|
},
|
||||||
|
|
||||||
.probe = synaptics_i2c_probe,
|
.probe_new = synaptics_i2c_probe,
|
||||||
.remove = synaptics_i2c_remove,
|
.remove = synaptics_i2c_remove,
|
||||||
|
|
||||||
.id_table = synaptics_i2c_id_table,
|
.id_table = synaptics_i2c_id_table,
|
||||||
|
|
Loading…
Reference in New Issue