Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: elantech - remove support for proprietary X driver

Apparently somewhere someone had a proprietary X driver. To get the
multitouch info, it uses some hack on the normal API instead of using
the multitouch protocol. Now that the multitouch info is transmitted
correctly it makes not much sense to keep it. Especially because it's
impossible to find this proprietary X driver anywhere, so the number of
users must be very low.

Signed-off-by: Éric Piel <eric.piel@tremplin-utc.net>
Reviewed-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Éric Piel and committed by
Dmitry Torokhov
9cb6cfae 89eec4d7

-12
-12
drivers/input/mouse/elantech.c
··· 330 330 */ 331 331 input_report_abs(dev, ABS_X, x1 << 2); 332 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 334 /* Unknown so just report sensible values */ 343 335 pres = 127; ··· 516 524 input_mt_init_slots(dev, 2); 517 525 input_set_abs_params(dev, ABS_MT_POSITION_X, ETP_XMIN_V2, ETP_XMAX_V2, 0, 0); 518 526 input_set_abs_params(dev, ABS_MT_POSITION_Y, ETP_YMIN_V2, ETP_YMAX_V2, 0, 0); 519 - input_set_abs_params(dev, ABS_HAT0X, ETP_2FT_XMIN, ETP_2FT_XMAX, 0, 0); 520 - input_set_abs_params(dev, ABS_HAT0Y, ETP_2FT_YMIN, ETP_2FT_YMAX, 0, 0); 521 - input_set_abs_params(dev, ABS_HAT1X, ETP_2FT_XMIN, ETP_2FT_XMAX, 0, 0); 522 - input_set_abs_params(dev, ABS_HAT1Y, ETP_2FT_YMIN, ETP_2FT_YMAX, 0, 0); 523 527 break; 524 528 } 525 529 }