diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-07-06 13:43:31 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-07-11 17:28:32 -0700 |
commit | 69b8c2a50c59a3b1c70666059a85c646f897eb96 (patch) | |
tree | 41ff9a3f14ba6af240f39d7c2dd0dda8109e55fc /drivers/input/touchscreen/pixcir_i2c_ts.c | |
parent | 40929167e6e8450a06501d292c5e5c81455d1c47 (diff) | |
download | op-kernel-dev-69b8c2a50c59a3b1c70666059a85c646f897eb96.zip op-kernel-dev-69b8c2a50c59a3b1c70666059a85c646f897eb96.tar.gz |
Input: pixcir_i2c_ts - simplify input device initialization
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>
Diffstat (limited to 'drivers/input/touchscreen/pixcir_i2c_ts.c')
-rw-r--r-- | drivers/input/touchscreen/pixcir_i2c_ts.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/input/touchscreen/pixcir_i2c_ts.c b/drivers/input/touchscreen/pixcir_i2c_ts.c index a5a8313..f47480e 100644 --- a/drivers/input/touchscreen/pixcir_i2c_ts.c +++ b/drivers/input/touchscreen/pixcir_i2c_ts.c @@ -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); |