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)
commit1ff2e1a44e02d4bdbb9be67c7d9acc240a67141f
tree96129c381432acfcfe1638d06594d60fc3eb1c8d
parentaaf9978c3c0291ef3beaa97610bc9c3084656a85
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