Skip to content

Commit 8360705

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/input/touchscreen/wdt87xx_i2c.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,8 +1064,7 @@ static int wdt87xx_ts_create_input_device(struct wdt87xx_data *wdt)
10641064
return 0;
10651065
}
10661066

1067-
static int wdt87xx_ts_probe(struct i2c_client *client,
1068-
const struct i2c_device_id *id)
1067+
static int wdt87xx_ts_probe(struct i2c_client *client)
10691068
{
10701069
struct wdt87xx_data *wdt;
10711070
int error;
@@ -1170,7 +1169,7 @@ static const struct acpi_device_id wdt87xx_acpi_id[] = {
11701169
MODULE_DEVICE_TABLE(acpi, wdt87xx_acpi_id);
11711170

11721171
static struct i2c_driver wdt87xx_driver = {
1173-
.probe = wdt87xx_ts_probe,
1172+
.probe_new = wdt87xx_ts_probe,
11741173
.id_table = wdt87xx_dev_id,
11751174
.driver = {
11761175
.name = WDT87XX_NAME,

0 commit comments

Comments
 (0)