HID: apple: Report Magic Keyboard battery over USB
authorJosé Expósito <jose.exposito89@gmail.com>
Thu, 18 Nov 2021 07:29:55 +0000 (08:29 +0100)
committerJiri Kosina <jkosina@suse.cz>
Fri, 19 Nov 2021 15:04:02 +0000 (16:04 +0100)
commit6e143293e17a73c9313f91c5ca3aaacbaef030cf
tree913eb01edfbc1a9a4f673552d7479f5710ce72e0
parent7f52ece242e9714d94d3bab630ea1dd2236e7d54
HID: apple: Report Magic Keyboard battery over USB

When connected over USB, the Apple Magic Keyboard 2015 registers 3
different interfaces. One of them is used to report the battery level.

However, unlike when connected over Bluetooth, the battery level is not
reported automatically and it is required to fetch it manually.

Add a new quirk to fix the battery report descriptor and a timer to
fetch the battery level.

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