Skip to content

Commit a71338b

Browse files
AdityaGarg8Jiri Kosina
authored andcommitted
HID: apple: Add necessary IDs and support for replacement trackpad on MacBookPro15,1
Some third party trackpad replacements like that of HAWSON may have a different PID than the stock trackpad. This commit adds one such trackpad to hid-apple, available for MacBookPro15,1 Signed-off-by: Aditya Garg <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent c5f3a74 commit a71338b

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

drivers/hid/hid-apple.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ static int hidinput_apple_event(struct hid_device *hid, struct input_dev *input,
499499
case USB_DEVICE_ID_APPLE_WELLSPRINGT2_J132:
500500
case USB_DEVICE_ID_APPLE_WELLSPRINGT2_J213:
501501
case USB_DEVICE_ID_APPLE_WELLSPRINGT2_J680:
502+
case USB_DEVICE_ID_APPLE_WELLSPRINGT2_J680_ALT:
502503
table = macbookpro_no_esc_fn_keys;
503504
break;
504505
case USB_DEVICE_ID_APPLE_WELLSPRINGT2_J152F:
@@ -1159,6 +1160,9 @@ static const struct hid_device_id apple_devices[] = {
11591160
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J680),
11601161
.driver_data = APPLE_HAS_FN | APPLE_BACKLIGHT_CTL | APPLE_ISO_TILDE_QUIRK |
11611162
APPLE_DISABLE_FKEYS },
1163+
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J680_ALT),
1164+
.driver_data = APPLE_HAS_FN | APPLE_BACKLIGHT_CTL | APPLE_ISO_TILDE_QUIRK |
1165+
APPLE_DISABLE_FKEYS },
11621166
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J213),
11631167
.driver_data = APPLE_HAS_FN | APPLE_BACKLIGHT_CTL | APPLE_ISO_TILDE_QUIRK |
11641168
APPLE_DISABLE_FKEYS },

drivers/hid/hid-ids.h

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,15 @@
179179
#define USB_DEVICE_ID_APPLE_WELLSPRING9_ANSI 0x0272
180180
#define USB_DEVICE_ID_APPLE_WELLSPRING9_ISO 0x0273
181181
#define USB_DEVICE_ID_APPLE_WELLSPRING9_JIS 0x0274
182-
#define USB_DEVICE_ID_APPLE_WELLSPRINGT2_J140K 0x027a
183-
#define USB_DEVICE_ID_APPLE_WELLSPRINGT2_J132 0x027b
184-
#define USB_DEVICE_ID_APPLE_WELLSPRINGT2_J680 0x027c
185-
#define USB_DEVICE_ID_APPLE_WELLSPRINGT2_J213 0x027d
186-
#define USB_DEVICE_ID_APPLE_WELLSPRINGT2_J214K 0x027e
187-
#define USB_DEVICE_ID_APPLE_WELLSPRINGT2_J223 0x027f
188-
#define USB_DEVICE_ID_APPLE_WELLSPRINGT2_J230K 0x0280
189-
#define USB_DEVICE_ID_APPLE_WELLSPRINGT2_J152F 0x0340
182+
#define USB_DEVICE_ID_APPLE_WELLSPRINGT2_J140K 0x027a
183+
#define USB_DEVICE_ID_APPLE_WELLSPRINGT2_J132 0x027b
184+
#define USB_DEVICE_ID_APPLE_WELLSPRINGT2_J680 0x027c
185+
#define USB_DEVICE_ID_APPLE_WELLSPRINGT2_J680_ALT 0x0278
186+
#define USB_DEVICE_ID_APPLE_WELLSPRINGT2_J213 0x027d
187+
#define USB_DEVICE_ID_APPLE_WELLSPRINGT2_J214K 0x027e
188+
#define USB_DEVICE_ID_APPLE_WELLSPRINGT2_J223 0x027f
189+
#define USB_DEVICE_ID_APPLE_WELLSPRINGT2_J230K 0x0280
190+
#define USB_DEVICE_ID_APPLE_WELLSPRINGT2_J152F 0x0340
190191
#define USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY 0x030a
191192
#define USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY 0x030b
192193
#define USB_DEVICE_ID_APPLE_IRCONTROL 0x8240

drivers/hid/hid-quirks.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
314314
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J140K) },
315315
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J132) },
316316
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J680) },
317+
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J680_ALT) },
317318
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J213) },
318319
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J214K) },
319320
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J223) },

0 commit comments

Comments
 (0)