HID: lenovo: Support for ThinkPad-X12-TAB-1/2 Kbd Fn keys
authorVishnu Sankar <vishnuocv@gmail.com>
Wed, 18 Dec 2024 14:33:09 +0000 (23:33 +0900)
committerJiri Kosina <jkosina@suse.com>
Thu, 9 Jan 2025 09:04:20 +0000 (10:04 +0100)
commit84c9d2a968c8276f1ceddaa1526c803263eae2b4
treece1449f7a522216795d347eaf6b47ed28d6fe56f
parent2a770b49b1bf00fca5473cb386eaf36d21d17d4b
HID: lenovo: Support for ThinkPad-X12-TAB-1/2 Kbd Fn keys

Fn Keys like Mic mute, Power Modes/Airplane mode,Selective
screenshot/Pickup Phone, KBD Backlight and
star/Favourites is emitted as HID raw events in X12 Tab1 and Tab2.
This support has been added.

Thinkpad X12 TAB 2 and TAB 1 Folio keyboard's raw events will get
detected as Fn keys with this patch.

Default fn_lock state for these Keyboards are OFF.

Other than these changes, we follow TP10UKBD's processes.

Tested on X12 Tab 2.

Signed-off-by: Vishnu Sankar <vishnuocv@gmail.com>
Signed-off-by: Vishnu Sankar <vsankar@lenovo.com>
Suggested-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-lenovo.c