diff options
| -rw-r--r-- | drivers/input/mouse/elantech.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c index 32648b34b115..32503565faf9 100644 --- a/drivers/input/mouse/elantech.c +++ b/drivers/input/mouse/elantech.c | |||
| @@ -330,14 +330,6 @@ static void elantech_report_absolute_v2(struct psmouse *psmouse) | |||
| 330 | */ | 330 | */ |
| 331 | input_report_abs(dev, ABS_X, x1 << 2); | 331 | input_report_abs(dev, ABS_X, x1 << 2); |
| 332 | input_report_abs(dev, ABS_Y, y1 << 2); | 332 | input_report_abs(dev, ABS_Y, y1 << 2); |
| 333 | /* | ||
| 334 | * For compatibility with the proprietary X Elantech driver | ||
| 335 | * report both coordinates as hat coordinates | ||
| 336 | */ | ||
| 337 | input_report_abs(dev, ABS_HAT0X, x1); | ||
| 338 | input_report_abs(dev, ABS_HAT0Y, y1); | ||
| 339 | input_report_abs(dev, ABS_HAT1X, x2); | ||
| 340 | input_report_abs(dev, ABS_HAT1Y, y2); | ||
| 341 | 333 | ||
| 342 | /* Unknown so just report sensible values */ | 334 | /* Unknown so just report sensible values */ |
| 343 | pres = 127; | 335 | pres = 127; |
| @@ -524,10 +516,6 @@ static void elantech_set_input_params(struct psmouse *psmouse) | |||
| 524 | input_mt_init_slots(dev, 2); | 516 | input_mt_init_slots(dev, 2); |
| 525 | input_set_abs_params(dev, ABS_MT_POSITION_X, ETP_XMIN_V2, ETP_XMAX_V2, 0, 0); | 517 | input_set_abs_params(dev, ABS_MT_POSITION_X, ETP_XMIN_V2, ETP_XMAX_V2, 0, 0); |
| 526 | input_set_abs_params(dev, ABS_MT_POSITION_Y, ETP_YMIN_V2, ETP_YMAX_V2, 0, 0); | 518 | input_set_abs_params(dev, ABS_MT_POSITION_Y, ETP_YMIN_V2, ETP_YMAX_V2, 0, 0); |
| 527 | input_set_abs_params(dev, ABS_HAT0X, ETP_2FT_XMIN, ETP_2FT_XMAX, 0, 0); | ||
| 528 | input_set_abs_params(dev, ABS_HAT0Y, ETP_2FT_YMIN, ETP_2FT_YMAX, 0, 0); | ||
| 529 | input_set_abs_params(dev, ABS_HAT1X, ETP_2FT_XMIN, ETP_2FT_XMAX, 0, 0); | ||
| 530 | input_set_abs_params(dev, ABS_HAT1Y, ETP_2FT_YMIN, ETP_2FT_YMAX, 0, 0); | ||
| 531 | break; | 519 | break; |
| 532 | } | 520 | } |
| 533 | } | 521 | } |
