HID: add per device quirk to force bind to hid-generic
authorBenjamin Tissoires <bentiss@kernel.org>
Tue, 1 Oct 2024 14:30:12 +0000 (16:30 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Fri, 4 Oct 2024 14:10:46 +0000 (16:10 +0200)
commit645c224ac5f6e0013931c342ea707b398d24d410
tree1db62e86b3cd072464410f74af37bee347a02cc4
parent72c55473fc8c82b06df79473f04c5231d51580d7
HID: add per device quirk to force bind to hid-generic

We already have the possibility to force not binding to hid-generic and
rely on a dedicated driver, but we couldn't do the other way around.

This is useful for BPF programs where we are fixing the report descriptor
and the events, but want to avoid a specialized driver to come after BPF
which would unwind everything that is done there.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Link: https://patch.msgid.link/20241001-hid-bpf-hid-generic-v3-8-2ef1019468df@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
drivers/hid/hid-core.c
drivers/hid/hid-generic.c
include/linux/hid.h