HID: logitech-hidpp: Add support for the S510 remote control [Linux 5.2]

HID: logitech-hidpp: Add support for the S510 remote control [Linux 5.2]

This Linux kernel change "HID: logitech-hidpp: Add support for the S510 remote control" is included in the Linux 5.2 release. This change is authored by Hans de Goede <hdegoede [at] redhat.com> on Sun May 12 12:36:02 2019 +0200. The commit for this change in Linux stable tree is 2409877 (patch).

HID: logitech-hidpp: Add support for the S510 remote control

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 <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>

There are 3 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/hid/hid-logitech-hidpp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c
index b99619d..14c84e1 100644
--- a/drivers/hid/hid-logitech-hidpp.c
+++ b/drivers/hid/hid-logitech-hidpp.c
@@ -3747,6 +3747,9 @@ static void hidpp_remove(struct hid_device *hdev)
    { /* 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) },

Leave a Reply

Your email address will not be published. Required fields are marked *