FROMLIST: HID: logitech-dj: extend consumer usages range
Extend the range of usage codes in the consumer page descriptor of
the driver. Some Logitech HID devices send usages in that upper range.
Signed-off-by: Olivier Gay <ogay@logitech.com>
(am from https://patchwork.kernel.org/patch/11064241/)
Signed-off-by: Benson Leung <bleung@chromium.org>
BUG=b:138128410,b:137975048
TEST=Test with a keyboard with 0x029F key. Check that it is correctly
received by evtest.
Reviewed-on: https://chromium-review.googlesource.com/1727136
Tested-by: Benson Leung <bleung@google.com>
Commit-Ready: Benson Leung <bleung@google.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
(cherry picked from commit b3e702f1c605bde8c5366264adfce017fe7525d0)
Change-Id: Ib7a9cabf0ec1559bbabd0026a1398f8c4467a14f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1731787
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
Commit-Queue: Benson Leung <bleung@google.com>
Tested-by: Benson Leung <bleung@google.com>
Auto-Submit: Benson Leung <bleung@google.com>
diff --git a/drivers/hid/hid-logitech-dj.c b/drivers/hid/hid-logitech-dj.c
index 826fa1e..987824a 100644
--- a/drivers/hid/hid-logitech-dj.c
+++ b/drivers/hid/hid-logitech-dj.c
@@ -209,9 +209,9 @@
0x75, 0x10, /* REPORT_SIZE (16) */
0x95, 0x02, /* REPORT_COUNT (2) */
0x15, 0x01, /* LOGICAL_MIN (1) */
- 0x26, 0x8C, 0x02, /* LOGICAL_MAX (652) */
+ 0x26, 0xFF, 0x02, /* LOGICAL_MAX (767) */
0x19, 0x01, /* USAGE_MIN (1) */
- 0x2A, 0x8C, 0x02, /* USAGE_MAX (652) */
+ 0x2A, 0xFF, 0x02, /* USAGE_MAX (767) */
0x81, 0x00, /* INPUT (Data Ary Abs) */
0xC0, /* END_COLLECTION */
}; /* */