Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: elants_i2c - switch to probe_new

Now that we get rid of the usage of id argument at probe again, let's
switch to the new i2c probe method; this will avoid for people
misusing the possibly unassigned id pointer again.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20210528071024.26450-2-tiwai@suse.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Takashi Iwai and committed by
Dmitry Torokhov
45a4b683 b9c0ebb8

+2 -3
+2 -3
drivers/input/touchscreen/elants_i2c.c
··· 1369 1369 } 1370 1370 #endif 1371 1371 1372 - static int elants_i2c_probe(struct i2c_client *client, 1373 - const struct i2c_device_id *id) 1372 + static int elants_i2c_probe(struct i2c_client *client) 1374 1373 { 1375 1374 union i2c_smbus_data dummy; 1376 1375 struct elants_data *ts; ··· 1643 1644 #endif 1644 1645 1645 1646 static struct i2c_driver elants_i2c_driver = { 1646 - .probe = elants_i2c_probe, 1647 + .probe_new = elants_i2c_probe, 1647 1648 .id_table = elants_i2c_id, 1648 1649 .driver = { 1649 1650 .name = DEVICE_NAME,