Skip to content

Commit 8c9d734

Browse files
FFY00Jiri Kosina
authored andcommitted
HID: logitech-dj: add support for the static device in the Powerplay mat/receiver
The Logitech G Powerplay has a lightspeed receiver with a static HID++ device with ID 7 attached to it to. It is used to configure the led on the mat. For this reason I increased the max number of devices. Signed-off-by: Filipe Laíns <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 630dd6e commit 8c9d734

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

drivers/hid/hid-logitech-dj.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
#include <asm/unaligned.h>
1717
#include "hid-ids.h"
1818

19-
#define DJ_MAX_PAIRED_DEVICES 6
19+
#define DJ_MAX_PAIRED_DEVICES 7
2020
#define DJ_MAX_NUMBER_NOTIFS 8
2121
#define DJ_RECEIVER_INDEX 0
2222
#define DJ_DEVICE_INDEX_MIN 1
23-
#define DJ_DEVICE_INDEX_MAX 6
23+
#define DJ_DEVICE_INDEX_MAX 7
2424

2525
#define DJREPORT_SHORT_LENGTH 15
2626
#define DJREPORT_LONG_LENGTH 32
@@ -980,6 +980,11 @@ static void logi_hidpp_recv_queue_notif(struct hid_device *hdev,
980980
break;
981981
}
982982

983+
/* custom receiver device (eg. powerplay) */
984+
if (hidpp_report->device_index == 7) {
985+
workitem.reports_supported |= HIDPP;
986+
}
987+
983988
if (workitem.type == WORKITEM_TYPE_EMPTY) {
984989
hid_warn(hdev,
985990
"unusable device of type %s (0x%02x) connected on slot %d",

0 commit comments

Comments
 (0)