Skip to content

Commit cd66fd1

Browse files
Uwe Kleine-Königdtor
authored andcommitted
Input: tsc2004 - 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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent bc0bbf9 commit cd66fd1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/input/touchscreen/tsc2004.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ static int tsc2004_cmd(struct device *dev, u8 cmd)
3434
return 0;
3535
}
3636

37-
static int tsc2004_probe(struct i2c_client *i2c,
38-
const struct i2c_device_id *id)
37+
static int tsc2004_probe(struct i2c_client *i2c)
3938

4039
{
4140
return tsc200x_probe(&i2c->dev, i2c->irq, &tsc2004_input_id,
@@ -69,7 +68,7 @@ static struct i2c_driver tsc2004_driver = {
6968
.pm = &tsc200x_pm_ops,
7069
},
7170
.id_table = tsc2004_idtable,
72-
.probe = tsc2004_probe,
71+
.probe_new = tsc2004_probe,
7372
.remove = tsc2004_remove,
7473
};
7574
module_i2c_driver(tsc2004_driver);

0 commit comments

Comments
 (0)