Skip to content

Commit 55cd617

Browse files
whotJiri Kosina
authored andcommitted
HID: bpf: fix BTN_STYLUS for the XP Pen ACK05 remote
Usage_Dig_BarrelSwitch was applied in the UsagePage_Button which incorrectly mapped to BTN_TOOL_PENCIL Link: https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/merge_requests/193 Fixes: 834da37 ("bpf: add a v6.11+ compatible BPF fixup for the XPPen ACK05 remote") Link: https://patchwork.kernel.org/project/linux-input/patch/20250207-bpf-import-2025-02-07-v1-7-6048fdd5a206@kernel.org/ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Jiri Kosina <jkosina@suse.com>
1 parent 5e06802 commit 55cd617

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/hid/bpf/progs/XPPen__ACK05.bpf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ static const __u8 fixed_rdesc_vendor[] = {
157157
ReportCount(5) // padding
158158
Input(Const)
159159
// Byte 4 in report - just exists so we get to be a tablet pad
160+
UsagePage_Digitizers
160161
Usage_Dig_BarrelSwitch // BTN_STYLUS
161162
ReportCount(1)
162163
ReportSize(1)

0 commit comments

Comments
 (0)