]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: haptic: introduce hid_haptic_device
authorAngela Czubak <aczubak@google.com>
Mon, 18 Aug 2025 23:08:45 +0000 (23:08 +0000)
committerBenjamin Tissoires <bentiss@kernel.org>
Mon, 15 Sep 2025 12:32:54 +0000 (14:32 +0200)
commitb44779d44f7152c1b62091ab31514a62b4629d4c
tree564753d97cce81f8d97aec5f8d6355e516055015
parent7075ae4ac9db93a3e762f3c2793ad57dbbf8a120
HID: haptic: introduce hid_haptic_device

Define a new structure that contains simple haptic device configuration
as well as current state.
Add functions that recognize auto trigger and manual trigger reports
as well as save their addresses.
Verify that the pressure unit is either grams or newtons.
Mark the input device as a haptic touchpad if the unit is correct and
the reports are found.

Signed-off-by: Angela Czubak <aczubak@google.com>
Co-developed-by: Jonathan Denose <jdenose@google.com>
Signed-off-by: Jonathan Denose <jdenose@google.com>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
drivers/hid/Kconfig
drivers/hid/Makefile
drivers/hid/hid-haptic.c [new file with mode: 0644]
drivers/hid/hid-haptic.h [new file with mode: 0644]