]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/hid-tablet: add ABS_DISTANCE test for stylus/pen
authorPing Cheng <pinglinux@gmail.com>
Mon, 27 Oct 2025 20:39:25 +0000 (13:39 -0700)
committerJiri Kosina <jkosina@suse.com>
Thu, 20 Nov 2025 21:47:14 +0000 (22:47 +0100)
commit10c64d4ff42a9c59981382b0da44783ea76673b8
treeaa5ce58c45dab21e17a80f9e55d86746572cac19
parent7953794f741e94d30df9dafaaa4c031c85b891d6
selftests/hid-tablet: add ABS_DISTANCE test for stylus/pen

For pen and stylus, the ABS_Z event reports ABS_DISTANCE values
in the hid generic kernel driver. This test is to make sure that
the assignment is properly done for all pen and stylus tools.
Same as tilt, distance is an optional event.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Ping Cheng <ping.cheng@wacom.com>
Signed-off-by: Tatsunosuke Tobit <tatsunosuke.tobita@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
tools/testing/selftests/hid/tests/test_tablet.py