0003-hid.patch 916 B

123456789101112131415161718192021222324252627
  1. From 36d79941fc26dde7702139c3df51a6f4dc54b64f Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= <blaz@mxxn.io>
  3. Date: Wed, 6 Nov 2019 19:43:26 +0900
  4. Subject: [PATCH 03/10] hid
  5. ---
  6. drivers/hid/hid-core.c | 4 ++++
  7. 1 file changed, 4 insertions(+)
  8. diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
  9. index 12149c5c39e4..dea1f9139b5c 100644
  10. --- a/drivers/hid/hid-core.c
  11. +++ b/drivers/hid/hid-core.c
  12. @@ -781,6 +781,10 @@ static void hid_scan_feature_usage(struct hid_parser *parser, u32 usage)
  13. if (usage == 0xff0000c5 && parser->global.report_count == 256 &&
  14. parser->global.report_size == 8)
  15. parser->scan_flags |= HID_SCAN_FLAG_MT_WIN_8;
  16. +
  17. + if (usage == 0xff0000c6 && parser->global.report_count == 1 &&
  18. + parser->global.report_size == 8)
  19. + parser->scan_flags |= HID_SCAN_FLAG_MT_WIN_8;
  20. }
  21. static void hid_scan_collection(struct hid_parser *parser, unsigned type)
  22. --
  23. 2.24.1