diff options
Diffstat (limited to 'drivers/input')
| -rw-r--r-- | drivers/input/touchscreen/edt-ft5x06.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index e6aef3e48bd9..29d179a1953b 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c | |||
| @@ -1035,11 +1035,6 @@ static int edt_ft5x06_ts_probe(struct i2c_client *client, | |||
| 1035 | input->id.bustype = BUS_I2C; | 1035 | input->id.bustype = BUS_I2C; |
| 1036 | input->dev.parent = &client->dev; | 1036 | input->dev.parent = &client->dev; |
| 1037 | 1037 | ||
| 1038 | __set_bit(EV_KEY, input->evbit); | ||
| 1039 | __set_bit(EV_ABS, input->evbit); | ||
| 1040 | __set_bit(BTN_TOUCH, input->keybit); | ||
| 1041 | input_set_abs_params(input, ABS_X, 0, tsdata->num_x * 64 - 1, 0, 0); | ||
| 1042 | input_set_abs_params(input, ABS_Y, 0, tsdata->num_y * 64 - 1, 0, 0); | ||
| 1043 | input_set_abs_params(input, ABS_MT_POSITION_X, | 1038 | input_set_abs_params(input, ABS_MT_POSITION_X, |
| 1044 | 0, tsdata->num_x * 64 - 1, 0, 0); | 1039 | 0, tsdata->num_x * 64 - 1, 0, 0); |
| 1045 | input_set_abs_params(input, ABS_MT_POSITION_Y, | 1040 | input_set_abs_params(input, ABS_MT_POSITION_Y, |
| @@ -1048,7 +1043,7 @@ static int edt_ft5x06_ts_probe(struct i2c_client *client, | |||
| 1048 | if (!pdata) | 1043 | if (!pdata) |
| 1049 | touchscreen_parse_of_params(input); | 1044 | touchscreen_parse_of_params(input); |
| 1050 | 1045 | ||
| 1051 | error = input_mt_init_slots(input, MAX_SUPPORT_POINTS, 0); | 1046 | error = input_mt_init_slots(input, MAX_SUPPORT_POINTS, INPUT_MT_DIRECT); |
| 1052 | if (error) { | 1047 | if (error) { |
| 1053 | dev_err(&client->dev, "Unable to init MT slots.\n"); | 1048 | dev_err(&client->dev, "Unable to init MT slots.\n"); |
| 1054 | return error; | 1049 | return error; |
