Skip to content

Commit 895e6c2

Browse files
committed
HID: apple: add Fn key mapping for Apple silicon MacBooks
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent b63b7f5 commit 895e6c2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/hid/hid-apple.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,8 @@ static int hidinput_apple_event(struct hid_device *hid, struct input_dev *input,
498498
else if (hid->product >= USB_DEVICE_ID_APPLE_WELLSPRING4_ANSI &&
499499
hid->product <= USB_DEVICE_ID_APPLE_WELLSPRING4A_JIS)
500500
table = macbookair_fn_keys;
501+
else if (hid->vendor == SPI_VENDOR_ID_APPLE)
502+
table = apple2021_fn_keys;
501503
else if (hid->product < 0x21d || hid->product >= 0x300)
502504
table = powerbook_fn_keys;
503505
else

0 commit comments

Comments
 (0)