]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/hid: extract the utility part of hid_bpf.c into its own header
authorBenjamin Tissoires <bentiss@kernel.org>
Tue, 27 Aug 2024 08:19:30 +0000 (17:19 +0900)
committerBenjamin Tissoires <bentiss@kernel.org>
Thu, 29 Aug 2024 08:39:37 +0000 (10:39 +0200)
commit375e9bde9fc0fdb9e8d2339b06be5c2c2a5cb701
tree0b6ed2fad832fba0264660dcfd1f0502b3a5ca12
parentb31c9d9dc343146b9f4ce67b4eee748c49296e99
selftests/hid: extract the utility part of hid_bpf.c into its own header

When adding new tests programs, we need the same mechanics to create
new virtual devices, and read from their matching hidraw node.

Extract the common part into its own header so we can easily add new
tests C-files.

Link: https://patch.msgid.link/20240827-hidraw-revoke-v5-2-d004a7451aea@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
tools/testing/selftests/hid/hid_bpf.c
tools/testing/selftests/hid/hid_common.h [new file with mode: 0644]