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 <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
Vishnu Sankar authored and Jiri Kosina committed 2026-06-10 17:38:39 +02:00
1 parent df72cacda3
commit 4b0f556deb
1 file changed
+1
+1
View File
@@ -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;