summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/elants_i2c.c
diff options
context:
space:
mode:
authorGuenter Roeck2017-01-23 02:19:12 +0100
committerDmitry Torokhov2017-01-23 02:22:31 +0100
commitcefb26d4b37c329f624eb235a1bdc7b6b8dd9430 (patch)
treeea5384a9067c7949dafe1e1a84b3c88e1b97c980 /drivers/input/touchscreen/elants_i2c.c
parentInput: dm355evm_keys - drop unnecessary call to input_set_drvdata (diff)
downloadkernel-qcow2-linux-cefb26d4b37c329f624eb235a1bdc7b6b8dd9430.tar.gz
kernel-qcow2-linux-cefb26d4b37c329f624eb235a1bdc7b6b8dd9430.tar.xz
kernel-qcow2-linux-cefb26d4b37c329f624eb235a1bdc7b6b8dd9430.zip
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/elants_i2c.c')
-rw-r--r--drivers/input/touchscreen/elants_i2c.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/elants_i2c.c b/drivers/input/touchscreen/elants_i2c.c
index 02aec284deca..740e4483f4fd 100644
--- a/drivers/input/touchscreen/elants_i2c.c
+++ b/drivers/input/touchscreen/elants_i2c.c
@@ -1260,8 +1260,6 @@ static int elants_i2c_probe(struct i2c_client *client,
input_abs_set_res(ts->input, ABS_MT_POSITION_X, ts->x_res);
input_abs_set_res(ts->input, ABS_MT_POSITION_Y, ts->y_res);
- input_set_drvdata(ts->input, ts);
-
error = input_register_device(ts->input);
if (error) {
dev_err(&client->dev,