Skip to content

Commit 45a4b68

Browse files
tiwaidtor
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent b9c0ebb commit 45a4b68

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/input/touchscreen/elants_i2c.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,8 +1369,7 @@ static bool elants_acpi_is_hid_device(struct device *dev)
13691369
}
13701370
#endif
13711371

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)
13741373
{
13751374
union i2c_smbus_data dummy;
13761375
struct elants_data *ts;
@@ -1644,7 +1643,7 @@ MODULE_DEVICE_TABLE(of, elants_of_match);
16441643
#endif
16451644

16461645
static struct i2c_driver elants_i2c_driver = {
1647-
.probe = elants_i2c_probe,
1646+
.probe_new = elants_i2c_probe,
16481647
.id_table = elants_i2c_id,
16491648
.driver = {
16501649
.name = DEVICE_NAME,

0 commit comments

Comments
 (0)