HID: bpf: Fix Rapoo M50 Plus Silent side buttons
authorBenjamin Tissoires <bentiss@kernel.org>
Thu, 17 Oct 2024 16:34:59 +0000 (18:34 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Fri, 18 Oct 2024 12:37:33 +0000 (14:37 +0200)
commitcee9faff2f65d00fe8a56c1223c9c52435eb525d
tree28ce8a0fd722f0f36975f4402da72be533b2fa34
parent9bc089307e8dff7797233308372b4a90ce8f79be
HID: bpf: Fix Rapoo M50 Plus Silent side buttons

The Rapoo M50 Plus Silent mouse has 2 side buttons in addition to the
left, right and middles buttons. However, its original HID descriptor
has a Usage Maximum of 3, preventing the side buttons to work.

This HID-BPF driver changes that usage to 5.

Link: https://gitlab.freedesktop.org/libinput/libinput/-/issues/1015
Link: https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/merge_requests/116
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Acked-by: Jiri Kosina <jkosina@suse.com>
Link: https://patch.msgid.link/20241017-import_bpf_6-13-v2-2-6a7acb89a97f@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
drivers/hid/bpf/progs/Rapoo__M50-Plus-Silent.bpf.c [new file with mode: 0644]