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/[email protected]/ Signed-off-by: Peter Hutterer <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 5e06802 commit 55cd617

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)