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>
This commit is contained in:

committed by
Dmitry Torokhov

parent
86178c8634
commit
cefb26d4b3
@@ -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)
|
||||
|
Reference in New Issue
Block a user