]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
HID: logitech-hidpp: Add support for the S510 remote control
authorHans de Goede <hdegoede@redhat.com>
Sun, 12 May 2019 10:36:02 +0000 (12:36 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 22 May 2019 11:20:15 +0000 (13:20 +0200)
The S510 remote-control shows up as a second keyboard (keypad) on the
receiver. It has a scroll-wheel, which normally sends wheel event
originating from the mouse's evdev node.

Add a HIDPP_QUIRK_KBD_SCROLL_WHEEL quirk for it, so that the wheel events
properly originate from the evdev node of the remote control itself.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-hidpp.c

index b99619d64080df2c5941e0b73698136c672a4bc3..14c84e1189a439c9c3a674c2c8703d0f03b5902e 100644 (file)
@@ -3747,6 +3747,9 @@ static const struct hid_device_id hidpp_devices[] = {
        { /* Keyboard MX3200 (Y-RAV80) */
          L27MHZ_DEVICE(0x005c),
          .driver_data = HIDPP_QUIRK_KBD_ZOOM_WHEEL },
+       { /* S510 Media Remote */
+         L27MHZ_DEVICE(0x00fe),
+         .driver_data = HIDPP_QUIRK_KBD_SCROLL_WHEEL },
 
        { L27MHZ_DEVICE(HID_ANY_ID) },