diff options
author | José Expósito <jose.exposito89@gmail.com> | 2022-01-02 18:51:13 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-01-06 14:01:32 +0100 |
commit | 7f84e2439ed2e2c7afdced9564dda1220e932704 (patch) | |
tree | 1463bfd4db2ffd79e5fd218ccfda6bcce8bf34d9 /drivers | |
parent | 531cb56972f2773c941499fcfb639cd5128dfb27 (diff) | |
download | linux-7f84e2439ed2e2c7afdced9564dda1220e932704.tar.gz linux-7f84e2439ed2e2c7afdced9564dda1220e932704.tar.bz2 linux-7f84e2439ed2e2c7afdced9564dda1220e932704.zip |
HID: apple: Add Magic Keyboard 2021 with fingerprint reader FN key mapping
Use the function key table introduced for the Magic Keyboard 2021
without fingerprint reader in the models with fingerprint reader and/or
numpad.
Tested with the ANSI variant of the keyboard with and without numpad.
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hid/hid-apple.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c index 8fcbac7f50ce..24802a4a636e 100644 --- a/drivers/hid/hid-apple.c +++ b/drivers/hid/hid-apple.c @@ -242,7 +242,9 @@ static int hidinput_apple_event(struct hid_device *hid, struct input_dev *input, } if (fnmode) { - if (hid->product == USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2021) + if (hid->product == USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2021 || + hid->product == USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_FINGERPRINT_2021 || + hid->product == USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_NUMPAD_2021) table = apple2021_fn_keys; else if (hid->product >= USB_DEVICE_ID_APPLE_WELLSPRING4_ANSI && hid->product <= USB_DEVICE_ID_APPLE_WELLSPRING4A_JIS) |