selftests/hid: cleanup C tests by adding a common struct uhid_device
authorBenjamin Tissoires <bentiss@kernel.org>
Tue, 1 Oct 2024 14:30:10 +0000 (16:30 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Fri, 4 Oct 2024 14:10:46 +0000 (16:10 +0200)
commit4fb41dfde0699796b955eb94e7b8037a67b4b3a5
tree80a891899d61c5056eaabdc5d381df99f47ddfa3
parent0b838d768ccdbdfbcaed5f4b18b4bf63e53a0e0d
selftests/hid: cleanup C tests by adding a common struct uhid_device

Allows to have an abstract class uhid_device which handles all of the
uhid part without having to mess up with individual fds.

struct attach_prog_args is now never used in hid_bpf.c, so drop it as well

Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://patch.msgid.link/20241001-hid-bpf-hid-generic-v3-6-2ef1019468df@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
tools/testing/selftests/hid/hid_bpf.c
tools/testing/selftests/hid/hid_common.h
tools/testing/selftests/hid/hidraw.c