summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/mcs5000_ts.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2017-01-22 17:19:12 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-22 17:22:31 -0800
commitcefb26d4b37c329f624eb235a1bdc7b6b8dd9430 (patch)
treeea5384a9067c7949dafe1e1a84b3c88e1b97c980 /drivers/input/touchscreen/mcs5000_ts.c
parent86178c8634ff8abe04933839d009c4440213040f (diff)
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/mcs5000_ts.c')
-rw-r--r--drivers/input/touchscreen/mcs5000_ts.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/mcs5000_ts.c b/drivers/input/touchscreen/mcs5000_ts.c
index 8b47e1fecb25..90fc07dc98a6 100644
--- a/drivers/input/touchscreen/mcs5000_ts.c
+++ b/drivers/input/touchscreen/mcs5000_ts.c
@@ -221,7 +221,6 @@ static int mcs5000_ts_probe(struct i2c_client *client,
input_set_abs_params(input_dev, ABS_X, 0, MCS5000_MAX_XC, 0, 0);
input_set_abs_params(input_dev, ABS_Y, 0, MCS5000_MAX_YC, 0, 0);
- input_set_drvdata(input_dev, data);
data->input_dev = input_dev;
if (pdata->cfg_pin)