[PATCH v2 0/3] Magic Keyboard first generation and 2015 FN key mapping

From: José Expósito
Date: Tue Feb 08 2022 - 13:37:16 EST


Hi everyone,

This patchset adds the missing key mapping for the Magic Keyboard first
generation and the 2015 models.

Since the first generation model had numlock emulation in place, I
decided to fix the bug (described in the patch) and keep it in place
just because it has been there for so long that people might use it.
Having said that, there is no indication in the keyboard about which
keys can be used as numbers or how to enable/disable numlock.
I think that a patch removing APPLE_NUMLOCK_EMULATION might make sense,
but I didn't want to remove existing functionality without asking :)

Thanks a lot,
José Expósito

v2: Resolve conflicts

José Expósito (3):
HID: apple: Refactor key translation setup
HID: apple: Magic Keyboard first generation FN key mapping
HID: apple: Magic Keyboard 2015 FN key mapping

drivers/hid/hid-apple.c | 100 ++++++++++++++++++++++++++++++----------
1 file changed, 76 insertions(+), 24 deletions(-)

--
2.25.1