mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 02:17:36 -04:00
HID: lenovo: Use KEY_PERFORMANCE capability for ThinkPad X12 Tab Gen 2
The X12 Tab Gen 2 emits KEY_PERFORMANCE via Fn+F8 through the raw event handler but never declared the capability via input_set_capability(). This prevents userspace tools from discovering the key through evdev capability bits. Signed-off-by: Vishnu Sankar <vishnuocv@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
committed by
Jiri Kosina
parent
df72cacda3
commit
4b0f556deb
@@ -1526,6 +1526,7 @@ static int lenovo_input_configured(struct hid_device *hdev,
|
||||
hi->input->propbit);
|
||||
}
|
||||
break;
|
||||
case USB_DEVICE_ID_LENOVO_X12_TAB2:
|
||||
case USB_DEVICE_ID_LENOVO_X13_TAB:
|
||||
input_set_capability(hi->input, EV_KEY, KEY_PERFORMANCE);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user