]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/hid: add test for assigning a given device to hid-generic
authorBenjamin Tissoires <bentiss@kernel.org>
Tue, 1 Oct 2024 14:30:13 +0000 (16:30 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Fri, 4 Oct 2024 14:10:49 +0000 (16:10 +0200)
commite14e0eaeb040899f7cb363cdfdf8fbee84a45f08
treeabdf61f57d24021216e2ac200f2b351dbba2d7de
parent645c224ac5f6e0013931c342ea707b398d24d410
selftests/hid: add test for assigning a given device to hid-generic

We use a well known VID/PID on a driver that doesn't need to talk to
the device, ensures we created the device against the target driver,
then load our program and ensure we have unbound to this driver and use
hid-generic instead.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://patch.msgid.link/20241001-hid-bpf-hid-generic-v3-9-2ef1019468df@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
tools/testing/selftests/hid/hid_bpf.c
tools/testing/selftests/hid/progs/hid.c
tools/testing/selftests/hid/progs/hid_bpf_helpers.h