diff options
| -rw-r--r-- | drivers/input/mouse/elantech.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c index 21c68a8953d7..479011004a11 100644 --- a/drivers/input/mouse/elantech.c +++ b/drivers/input/mouse/elantech.c | |||
| @@ -486,7 +486,6 @@ static void elantech_input_sync_v4(struct psmouse *psmouse) | |||
| 486 | unsigned char *packet = psmouse->packet; | 486 | unsigned char *packet = psmouse->packet; |
| 487 | 487 | ||
| 488 | input_report_key(dev, BTN_LEFT, packet[0] & 0x01); | 488 | input_report_key(dev, BTN_LEFT, packet[0] & 0x01); |
| 489 | input_report_key(dev, BTN_RIGHT, packet[0] & 0x02); | ||
| 490 | input_mt_report_pointer_emulation(dev, true); | 489 | input_mt_report_pointer_emulation(dev, true); |
| 491 | input_sync(dev); | 490 | input_sync(dev); |
| 492 | } | 491 | } |
| @@ -967,6 +966,7 @@ static int elantech_set_input_params(struct psmouse *psmouse) | |||
| 967 | if (elantech_set_range(psmouse, &x_min, &y_min, &x_max, &y_max, &width)) | 966 | if (elantech_set_range(psmouse, &x_min, &y_min, &x_max, &y_max, &width)) |
| 968 | return -1; | 967 | return -1; |
| 969 | 968 | ||
| 969 | __set_bit(INPUT_PROP_POINTER, dev->propbit); | ||
| 970 | __set_bit(EV_KEY, dev->evbit); | 970 | __set_bit(EV_KEY, dev->evbit); |
| 971 | __set_bit(EV_ABS, dev->evbit); | 971 | __set_bit(EV_ABS, dev->evbit); |
| 972 | __clear_bit(EV_REL, dev->evbit); | 972 | __clear_bit(EV_REL, dev->evbit); |
| @@ -1017,7 +1017,9 @@ static int elantech_set_input_params(struct psmouse *psmouse) | |||
| 1017 | */ | 1017 | */ |
| 1018 | psmouse_warn(psmouse, "couldn't query resolution data.\n"); | 1018 | psmouse_warn(psmouse, "couldn't query resolution data.\n"); |
| 1019 | } | 1019 | } |
| 1020 | 1020 | /* v4 is clickpad, with only one button. */ | |
| 1021 | __set_bit(INPUT_PROP_BUTTONPAD, dev->propbit); | ||
| 1022 | __clear_bit(BTN_RIGHT, dev->keybit); | ||
| 1021 | __set_bit(BTN_TOOL_QUADTAP, dev->keybit); | 1023 | __set_bit(BTN_TOOL_QUADTAP, dev->keybit); |
| 1022 | /* For X to recognize me as touchpad. */ | 1024 | /* For X to recognize me as touchpad. */ |
| 1023 | input_set_abs_params(dev, ABS_X, x_min, x_max, 0, 0); | 1025 | input_set_abs_params(dev, ABS_X, x_min, x_max, 0, 0); |
