]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: haptic: add hid_haptic_switch_mode
authorAngela Czubak <aczubak@google.com>
Mon, 18 Aug 2025 23:08:51 +0000 (23:08 +0000)
committerBenjamin Tissoires <bentiss@kernel.org>
Mon, 15 Sep 2025 12:32:55 +0000 (14:32 +0200)
commitff66b8eebbab37146ef1399d93332f82b752990b
tree2dc131a663532abeac99777c6f5cc6a00e4acaae
parent4e584ac737884ef0fd80f6836b917972fad86b17
HID: haptic: add hid_haptic_switch_mode

Function hid_haptic_switch_mode() can be used to switch between
device-controlled mode and host-controlled mode. Uploading a
WAVEFORMPRESS or WAVEFORMRELEASE effect triggers host-controlled mode if
the device is in device-controlled mode.

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