summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/egalax_ts.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2017-01-23 04:19:12 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-23 04:22:31 +0300
commitcefb26d4b37c329f624eb235a1bdc7b6b8dd9430 (patch)
treeea5384a9067c7949dafe1e1a84b3c88e1b97c980 /drivers/input/touchscreen/egalax_ts.c
parent86178c8634ff8abe04933839d009c4440213040f (diff)
downloadlinux-cefb26d4b37c329f624eb235a1bdc7b6b8dd9430.tar.xz
Input: touchscreen - drop unnecessary calls to input_set_drvdata
Since there is no call to dev_get_drvdata() or input_get_drvdata(), the call to input_set_drvdata() is unnecessary and can be dropped. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/egalax_ts.c')
-rw-r--r--drivers/input/touchscreen/egalax_ts.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/egalax_ts.c b/drivers/input/touchscreen/egalax_ts.c
index 3592a946950b..752ae9cf4514 100644
--- a/drivers/input/touchscreen/egalax_ts.c
+++ b/drivers/input/touchscreen/egalax_ts.c
@@ -214,8 +214,6 @@ static int egalax_ts_probe(struct i2c_client *client,
ABS_MT_POSITION_Y, 0, EGALAX_MAX_Y, 0, 0);
input_mt_init_slots(input_dev, MAX_SUPPORT_POINTS, 0);
- input_set_drvdata(input_dev, ts);
-
error = devm_request_threaded_irq(&client->dev, client->irq, NULL,
egalax_ts_interrupt,
IRQF_TRIGGER_LOW | IRQF_ONESHOT,