OSDN Git Service

HID: apple: Magic Keyboard 2015 FN key mapping
authorJosé Expósito <jose.exposito89@gmail.com>
Tue, 8 Feb 2022 18:37:04 +0000 (19:37 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 16 Feb 2022 15:49:45 +0000 (16:49 +0100)
commit250b369ed2380ba9accda31931e63ae351ab9f6d
tree361c9670a9c680f76ff89247f0babb74441d25f8
parent0fea6fe7d5ef1b5fa5f78048d4729f85181c04ca
HID: apple: Magic Keyboard 2015 FN key mapping

The Magic Keyboard 2015 function key mapping was not present and the
default mapping was used.
While this worked for most keys, the F5 and F6 keys were sending
KEY_KBDILLUMDOWN and KEY_KBDILLUMUP; however, the keyboard is not
backlited.

Add a custom translation table for the keyboard leaving F5 and F6
unassigned to mimic the default behavior on macOS.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-apple.c