hid-asus.c (c55526a1c1e133f635b59a9af3a9d84bab939657) hid-asus.c (f83baa0cb6cfc92ebaf7f9d3a99d7e34f2e77a8a)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * HID driver for Asus notebook built-in keyboard.
4 * Fixes small logical maximum to match usage maximum.
5 *
6 * Currently supported devices are:
7 * EeeBook X205TA
8 * VivoBook E200HA

--- 1014 unchanged lines hidden (view full) ---

1023 if (strstr(hdev->name, "T90CHI")) {
1024 drvdata->quirks &= ~QUIRK_T100CHI;
1025 drvdata->quirks |= QUIRK_T90CHI;
1026 }
1027
1028 if (drvdata->quirks & QUIRK_IS_MULTITOUCH)
1029 drvdata->tp = &asus_i2c_tp;
1030
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * HID driver for Asus notebook built-in keyboard.
4 * Fixes small logical maximum to match usage maximum.
5 *
6 * Currently supported devices are:
7 * EeeBook X205TA
8 * VivoBook E200HA

--- 1014 unchanged lines hidden (view full) ---

1023 if (strstr(hdev->name, "T90CHI")) {
1024 drvdata->quirks &= ~QUIRK_T100CHI;
1025 drvdata->quirks |= QUIRK_T90CHI;
1026 }
1027
1028 if (drvdata->quirks & QUIRK_IS_MULTITOUCH)
1029 drvdata->tp = &asus_i2c_tp;
1030
1031 if ((drvdata->quirks & QUIRK_T100_KEYBOARD) &&
1032 hid_is_using_ll_driver(hdev, &usb_hid_driver)) {
1031 if ((drvdata->quirks & QUIRK_T100_KEYBOARD) && hid_is_usb(hdev)) {
1033 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
1034
1035 if (intf->altsetting->desc.bInterfaceNumber == T100_TPAD_INTF) {
1036 drvdata->quirks = QUIRK_SKIP_INPUT_MAPPING;
1037 /*
1038 * The T100HA uses the same USB-ids as the T100TAF and
1039 * the T200TA uses the same USB-ids as the T100TA, while
1040 * both have different max x/y values as the T100TA[F].

--- 11 unchanged lines hidden (view full) ---

1052 /*
1053 * All functionality is on a single HID interface and for
1054 * userspace the touchpad must be a separate input_dev.
1055 */
1056 hdev->quirks |= HID_QUIRK_MULTI_INPUT;
1057 drvdata->tp = &asus_t100chi_tp;
1058 }
1059
1032 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
1033
1034 if (intf->altsetting->desc.bInterfaceNumber == T100_TPAD_INTF) {
1035 drvdata->quirks = QUIRK_SKIP_INPUT_MAPPING;
1036 /*
1037 * The T100HA uses the same USB-ids as the T100TAF and
1038 * the T200TA uses the same USB-ids as the T100TA, while
1039 * both have different max x/y values as the T100TA[F].

--- 11 unchanged lines hidden (view full) ---

1051 /*
1052 * All functionality is on a single HID interface and for
1053 * userspace the touchpad must be a separate input_dev.
1054 */
1055 hdev->quirks |= HID_QUIRK_MULTI_INPUT;
1056 drvdata->tp = &asus_t100chi_tp;
1057 }
1058
1060 if ((drvdata->quirks & QUIRK_MEDION_E1239T) &&
1061 hid_is_using_ll_driver(hdev, &usb_hid_driver)) {
1059 if ((drvdata->quirks & QUIRK_MEDION_E1239T) && hid_is_usb(hdev)) {
1062 struct usb_host_interface *alt =
1063 to_usb_interface(hdev->dev.parent)->altsetting;
1064
1065 if (alt->desc.bInterfaceNumber == MEDION_E1239T_TPAD_INTF) {
1066 /* For separate input-devs for tp and tp toggle key */
1067 hdev->quirks |= HID_QUIRK_MULTI_INPUT;
1068 drvdata->quirks |= QUIRK_SKIP_INPUT_MAPPING;
1069 drvdata->tp = &medion_e1239t_tp;

--- 213 unchanged lines hidden ---
1060 struct usb_host_interface *alt =
1061 to_usb_interface(hdev->dev.parent)->altsetting;
1062
1063 if (alt->desc.bInterfaceNumber == MEDION_E1239T_TPAD_INTF) {
1064 /* For separate input-devs for tp and tp toggle key */
1065 hdev->quirks |= HID_QUIRK_MULTI_INPUT;
1066 drvdata->quirks |= QUIRK_SKIP_INPUT_MAPPING;
1067 drvdata->tp = &medion_e1239t_tp;

--- 213 unchanged lines hidden ---