]> git.baikalelectronics.ru Git - kernel.git/commit
HID: input: Create a utility class for counting scroll events
authorHarry Cutts <hcutts@chromium.org>
Thu, 30 Aug 2018 21:56:19 +0000 (14:56 -0700)
committerJiri Kosina <jkosina@suse.cz>
Wed, 5 Sep 2018 08:12:07 +0000 (10:12 +0200)
commit0e25c7c0403e0f44272c8c2dd8ef600fd03e8a1e
tree96129c381432acfcfe1638d06594d60fc3eb1c8d
parenta3db85a0d0d3b0915227b22b4c4a21764a139b5c
HID: input: Create a utility class for counting scroll events

To avoid code duplication, this class counts high-resolution scroll
movements and emits the legacy low-resolution events when appropriate.
Drivers should be able to create one instance for each scroll wheel that
they need to handle.

Signed-off-by: Harry Cutts <hcutts@chromium.org>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c
include/linux/hid.h