aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorBenjamin Tissoires <[email protected]>2024-04-10 19:19:28 +0200
committerBenjamin Tissoires <[email protected]>2024-05-07 15:39:16 +0200
commit9f1bf4c225329d27e85fc1c5b5af9e6ebf4a8ff3 (patch)
tree8766e103998a9d4c235eb8386cd42f63196ff0b9 /tools/testing/selftests/bpf/progs/test_autoload.c
parent1c046d09c6ba4ff5fb959b2d195cacadb2ae6977 (diff)
HID: bpf: add in-tree HID-BPF fix for the Huion Kamvas Pro 19
This tablets gets a lot of things wrong: - the secondary button is reported through Secondary Tip Switch - the third button is reported through Invert Fortunately, before entering eraser mode, (so Invert = 1), the tablet always sends an out-of-proximity event. So we can detect that single event and: - if there was none but the invert bit was toggled: this is the third button - if there was this out-of-proximity event, we are entering eraser mode, and we will until the next out-of-proximity. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Peter Hutterer <[email protected]> Signed-off-by: Benjamin Tissoires <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions