]> git.ipfire.org Git - thirdparty/linux.git/commit
HID: haptic: add functions handling events
authorAngela Czubak <aczubak@google.com>
Mon, 18 Aug 2025 23:08:49 +0000 (23:08 +0000)
committerBenjamin Tissoires <bentiss@kernel.org>
Mon, 15 Sep 2025 12:32:55 +0000 (14:32 +0200)
commita77efca3aa85e382b52b587ca9976c0f8e11d49c
treee5cca02f825890af35086e3505f8895b6c5e78e3
parent7657bf0b7cfb63ded95a6fe4e1cf106cf386b6cc
HID: haptic: add functions handling events

Implement hid_haptic_handle_press_release() which generates haptic feedback
as well as saves the pressed state of the haptic device.
Add functions to increase and reset the state of the pressure detected by
the device.

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/hid-haptic.c
drivers/hid/hid-haptic.h