Input: atmel_mxt_ts - add touchpad button mapping for Samsung Chromebook Pro
authorVittorio Gambaletta (VittGam) <[email protected]>
Wed, 25 Apr 2018 22:22:13 +0000 (15:22 -0700)
committerDmitry Torokhov <[email protected]>
Tue, 1 May 2018 18:35:33 +0000 (11:35 -0700)
This patch adds the correct platform data information for the Caroline
Chromebook, so that the mouse button does not get stuck in pressed state
after the first click.

The Samus button keymap and platform data definition are the correct
ones for Caroline, so they have been reused here.

Signed-off-by: Vittorio Gambaletta <[email protected]>
Signed-off-by: Salvatore Bellizzi <[email protected]>
Tested-by: Guenter Roeck <[email protected]>
Cc: [email protected]
[dtor: adjusted vendor spelling to match shipping firmware]
Signed-off-by: Dmitry Torokhov <[email protected]>
drivers/input/touchscreen/atmel_mxt_ts.c

index 7659bc48f1db8e76490e2451ad552aa1b7e17fcb..429b694405c7d4b5850ff91c5b8bef3ecbf817b7 100644 (file)
@@ -3030,6 +3030,15 @@ static const struct dmi_system_id mxt_dmi_table[] = {
                },
                .driver_data = samus_platform_data,
        },
+       {
+               /* Samsung Chromebook Pro */
+               .ident = "Samsung Chromebook Pro",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "Google"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "Caroline"),
+               },
+               .driver_data = samus_platform_data,
+       },
        {
                /* Other Google Chromebooks */
                .ident = "Chromebook",