]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/hid: use a enum class for the different button types
authorPeter Hutterer <peter.hutterer@who-t.net>
Sun, 21 Dec 2025 23:43:36 +0000 (09:43 +1000)
committerBenjamin Tissoires <bentiss@kernel.org>
Wed, 7 Jan 2026 14:28:09 +0000 (15:28 +0100)
commit4f36fdab084fcbe9c34bb51889e4b8c06d98fbaa
tree481b0ef006d0ff4d53a0425647b7fd64ac896373
parent1d6628f7f279131ac9efb743bcea7080666d7574
selftests/hid: use a enum class for the different button types

Instead of multiple spellings of a string-provided argument, let's make
this a tad more type-safe and use an enum here.

And while we do this fix the two wrong devices:
- elan_04f3_313a (HP ZBook Fury 15) is discrete button pad
- dell_044e_1220 (Dell Precision 7740) is a discrete button pad

Equivalent hid-tools commit
https://gitlab.freedesktop.org/libevdev/hid-tools/-/commit/8300a55bf4213c6a252cab8cb5b34c9ddb191625

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
tools/testing/selftests/hid/tests/test_multitouch.py