HID: lenovo: Add support for Thinkpad X1 Tablet Thin keyboard
authorHans de Goede <hdegoede@redhat.com>
Sun, 4 Apr 2021 08:04:32 +0000 (10:04 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 7 Apr 2021 10:48:20 +0000 (12:48 +0200)
commitc158c2afc99f9d1086f6d53b9c6c9813fcac1a10
tree36b171a219cb8f24d02fa1bcc1638e2de2c2d563
parent2d0f1c071ab1ce2f75ac3e52b99775ce574f6416
HID: lenovo: Add support for Thinkpad X1 Tablet Thin keyboard

The Thinkpad X1 Tablet Thin keyboard's HID interface for the media-keys
and other special functions, is quite similar to the Thinkpad 10 ultrabook
keyboard's mouse/media-keys HID interface.

The only difference is that it needs a bit different key mappings.

Add support for the mute-LED and the non-standard media-keys on this
keyboard by re-using the tp10_ultrabook_kbd code combined with a new
lenovo_input_mapping_x1_tab_kbd() function.

Co-authored-by: Alexander Kobel <a-kobel@a-kobel.de>
Tested-by: Alexander Kobel <a-kobel@a-kobel.de>
Signed-off-by: Alexander Kobel <a-kobel@a-kobel.de>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-lenovo.c