Input: max11801_ts - drop call to input_set_drvdata()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 22 Jan 2017 07:36:05 +0000 (23:36 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 22 Jan 2017 22:32:34 +0000 (14:32 -0800)
Nobody calls input_get_drvdata() so setting it is not required.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/max11801_ts.c

index d87b89da114e785bd628c84bcec8d3c16027c951..a595ae5284e36887767ce5fda19ec68055daafa5 100644 (file)
@@ -199,7 +199,6 @@ static int max11801_ts_probe(struct i2c_client *client,
        __set_bit(BTN_TOUCH, input_dev->keybit);
        input_set_abs_params(input_dev, ABS_X, 0, MAX11801_MAX_X, 0, 0);
        input_set_abs_params(input_dev, ABS_Y, 0, MAX11801_MAX_Y, 0, 0);
-       input_set_drvdata(input_dev, data);
 
        max11801_ts_phy_init(data);