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

platform/chrome: chromeos_laptop: fix touchpad button mapping on Celes

Celes has newer touch controller (compared to the controllers used in
older BayTrail-based devices) and so uses the same button mapping as
Samus.

This fixes the issue with mouse button being stuck in pressed state
after the first click.

Reported-by: Sultan Alsawaf <sultanxda@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Benson Leung <bleung@chromium.org>

authored by

Dmitry Torokhov and committed by
Benson Leung
683b6473 1eb89893

+9 -1
+9 -1
drivers/platform/chrome/chromeos_laptop.c
··· 621 621 .driver_data = (void *)&samus, 622 622 }, 623 623 { 624 + .ident = "Samsung Chromebook 3", 625 + .matches = { 626 + DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"), 627 + DMI_MATCH(DMI_PRODUCT_NAME, "Celes"), 628 + }, 629 + .driver_data = (void *)&samus, 630 + }, 631 + { 624 632 /* 625 633 * Other Chromebooks with Atmel touch controllers: 626 - * - Celes, Winky (touchpad) 634 + * - Winky (touchpad) 627 635 * - Clapper, Expresso, Rambi, Glimmer (touchscreen) 628 636 */ 629 637 .ident = "Other Chromebook",