]> git.baikalelectronics.ru Git - kernel.git/commit
HID: logitech: Enable high-resolution scrolling on Logitech mice
authorHarry Cutts <hcutts@chromium.org>
Thu, 30 Aug 2018 21:56:21 +0000 (14:56 -0700)
committerJiri Kosina <jkosina@suse.cz>
Wed, 5 Sep 2018 08:12:07 +0000 (10:12 +0200)
commit5c49dbbe711b5d5d1878e8c8a281d36e7ee93516
tree20d6ae66ccd6f8cecb62780c7997cf32d8867ecf
parent7657355c91381a98e86979541bab013cc5a510ec
HID: logitech: Enable high-resolution scrolling on Logitech mice

There are three features used by various Logitech mice for
high-resolution scrolling: the scrolling acceleration bit in HID++ 1.0,
and the x2120 and x2121 features in HID++ 2.0 and above. This patch
supports all three, and uses the multiplier reported by the mouse for
the HID++ 2.0+ features.

The full list of product IDs of mice which support high-resolution
scrolling was provided by Logitech, but the patch was tested using the
following mice (using the Unifying receiver):

* HID++ 1.0: Anywhere MX, Performance MX
* x2120: M560
* x2121: MX Anywhere 2, MX Master 2S

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-logitech-hidpp.c