]> 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)
commit6203d16a99011664b1abeeb2cc0452dc2ccd00e7
tree96129c381432acfcfe1638d06594d60fc3eb1c8d
parent42507761ad4a510999d8121daa63ae97f4b9cf5c
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