linux-surface/patches/5.3/0004-hid.patch

28 lines
916 B
Diff
Raw Normal View History

From ba41efff33ac23f118d1bc6eb21745d0003c9e6e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= <blaz@mxxn.io>
Date: Wed, 6 Nov 2019 19:43:26 +0900
Subject: [PATCH 04/10] hid
2019-05-15 23:12:56 +00:00
---
drivers/hid/hid-core.c | 4 ++++
1 file changed, 4 insertions(+)
2019-05-15 23:12:56 +00:00
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 3af76624e4aa..551eabc9528a 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -742,6 +742,10 @@ static void hid_scan_feature_usage(struct hid_parser *parser, u32 usage)
if (usage == 0xff0000c5 && parser->global.report_count == 256 &&
parser->global.report_size == 8)
parser->scan_flags |= HID_SCAN_FLAG_MT_WIN_8;
2019-05-15 23:12:56 +00:00
+
+ if (usage == 0xff0000c6 && parser->global.report_count == 1 &&
+ parser->global.report_size == 8)
+ parser->scan_flags |= HID_SCAN_FLAG_MT_WIN_8;
}
static void hid_scan_collection(struct hid_parser *parser, unsigned type)
2019-05-15 23:12:56 +00:00
--
2.24.0
2019-05-15 23:12:56 +00:00