Skip to content

Commit 4e9d70a

Browse files
Uwe Kleine-Königdtor
authored andcommitted
Input: tsc2007_core - Convert to i2c's .probe_new()
.probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. 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 cd66fd1 commit 4e9d70a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/input/touchscreen/tsc2007_core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,9 @@ static void tsc2007_call_exit_platform_hw(void *data)
302302
pdata->exit_platform_hw();
303303
}
304304

305-
static int tsc2007_probe(struct i2c_client *client,
306-
const struct i2c_device_id *id)
305+
static int tsc2007_probe(struct i2c_client *client)
307306
{
307+
const struct i2c_device_id *id = i2c_client_get_device_id(client);
308308
const struct tsc2007_platform_data *pdata =
309309
dev_get_platdata(&client->dev);
310310
struct tsc2007 *ts;
@@ -431,7 +431,7 @@ static struct i2c_driver tsc2007_driver = {
431431
.of_match_table = tsc2007_of_match,
432432
},
433433
.id_table = tsc2007_idtable,
434-
.probe = tsc2007_probe,
434+
.probe_new = tsc2007_probe,
435435
};
436436

437437
module_i2c_driver(tsc2007_driver);

0 commit comments

Comments
 (0)