HID: logitech-dj: Fix 064d:c52f receiver support
authorHans de Goede <hdegoede@redhat.com>
Wed, 5 Jun 2019 12:44:08 +0000 (14:44 +0200)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 5 Jun 2019 13:16:26 +0000 (15:16 +0200)
commit3ed224e273ac5880eeab4c3043a6b06b0478dd56
treec8bea1442142b118902a0795a1d9cd4a027a85b7
parentf9482dabfd1686987cc6044e06ae0e4c05915518
HID: logitech-dj: Fix 064d:c52f receiver support

The c52f nano receiver is a mouse only receiver. This means that it needs
some special handling compared to the c534 nano receiver:

1) It sends unnumbered mouse reports with a size of 8 bytes, so we need
   to extend the unnumbered mouse report handling to support reports upto
   8 bytes large

2) It mouse reports have the same high-resolution format as those from the
   gaming mouse receivers

3) It can report consumer/multimedia buttons on its second interface, since
   this is a mouse-only receiver these must be forwarded to the mouse child
   device and not to the keyboard child-device (which will not exist)

Link: https://bugzilla.kernel.org/show_bug.cgi?id=203619
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-logitech-dj.c