Skip to content

Commit 3d2f818

Browse files
Uwe Kleine-Königdtor
authored andcommitted
Input: stmfts - 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 8ff48be commit 3d2f818

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/input/touchscreen/stmfts.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,7 @@ static int stmfts_enable_led(struct stmfts_data *sdata)
624624
return 0;
625625
}
626626

627-
static int stmfts_probe(struct i2c_client *client,
628-
const struct i2c_device_id *id)
627+
static int stmfts_probe(struct i2c_client *client)
629628
{
630629
int err;
631630
struct stmfts_data *sdata;
@@ -809,7 +808,7 @@ static struct i2c_driver stmfts_driver = {
809808
.pm = &stmfts_pm_ops,
810809
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
811810
},
812-
.probe = stmfts_probe,
811+
.probe_new = stmfts_probe,
813812
.remove = stmfts_remove,
814813
.id_table = stmfts_id,
815814
};

0 commit comments

Comments
 (0)