linux/drivers/hid/bpf
Nikhil Chatterjee 857e71cb0a HID: bpf: Add Huion Inspiroy Frego M button quirk
The Huion Inspiroy Frego M pen report descriptor exposes the second
side button as Secondary Tip Switch instead of Secondary Barrel Switch.
This makes userspace see the control as the wrong pen button.

Add a HID-BPF report descriptor fixup for the Bluetooth 256c:8251
device and USB 256c:2012 L610 variant. The fixup matches the expected
pen descriptor and rewrites the offending usage from Secondary Tip
Switch to Secondary Barrel Switch.

Tested by building the HID-BPF object with:

  make -C drivers/hid/bpf/progs Huion__Inspiroy-Frego-M.bpf.o

Signed-off-by: Nikhil Chatterjee <nikhilc1527@gmail.com>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
2026-05-21 17:31:14 +02:00
..
progs HID: bpf: Add Huion Inspiroy Frego M button quirk 2026-05-21 17:31:14 +02:00
hid_bpf_dispatch.c HID: pass the buffer size to hid_report_raw_event 2026-05-12 18:03:37 +02:00
hid_bpf_dispatch.h HID: bpf: prevent infinite recursions with hid_hw_raw_requests hooks 2024-06-27 11:00:12 +02:00
hid_bpf_struct_ops.c Revert "HID: bpf: allow write access to quirks field in struct hid_device" 2024-11-25 09:21:47 -08:00
Kconfig hid: bpf: add BPF_JIT dependency 2024-07-22 16:52:05 +02:00
Makefile HID: bpf: remove tracing HID-BPF capability 2024-06-14 11:20:20 +02:00