Input: pixcir_i2c_ts - simplify input device initialization
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 6 Jul 2015 20:43:31 +0000 (13:43 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 12 Jul 2015 00:28:32 +0000 (17:28 -0700)
input_mt_init_slots() will perform necessary settings for performing
multi-touch to single-touch emulation, we do not need to do that ourselves.

Acked-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/pixcir_i2c_ts.c

index a5a83139aad05c7cc975ea14eafd9f0f1609cddf..f47480e8dff88ca7f33418b50a8b8b3505db7886 100644 (file)
@@ -510,11 +510,6 @@ static int pixcir_i2c_ts_probe(struct i2c_client *client,
        input->close = pixcir_input_close;
        input->dev.parent = &client->dev;
 
-       __set_bit(EV_KEY, input->evbit);
-       __set_bit(EV_ABS, input->evbit);
-       __set_bit(BTN_TOUCH, input->keybit);
-       input_set_abs_params(input, ABS_X, 0, pdata->x_max, 0, 0);
-       input_set_abs_params(input, ABS_Y, 0, pdata->y_max, 0, 0);
        input_set_abs_params(input, ABS_MT_POSITION_X, 0, pdata->x_max, 0, 0);
        input_set_abs_params(input, ABS_MT_POSITION_Y, 0, pdata->y_max, 0, 0);