Skip to contentSkip to conversation

support other device which report id is 2

PATCH In review Caiyuan Xie 2 participants 2 messages May 22, 2020 – Jun 16, 2020 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support other device which report id is 2

From: Caiyuan Xie <[email protected]>

<Change list>
-support other device which report id is 2.

---
 drivers/hid/hid-alps.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/hid/hid-alps.c +2 -0
index b2ad319a74b9..d33f5abc8f64 100644
@@ -25,6 +25,7 @@
 
 #define U1_MOUSE_REPORT_ID			0x01 /* Mouse data ReportID */
 #define U1_ABSOLUTE_REPORT_ID		0x03 /* Absolute data ReportID */
+#define U1_ABSOLUTE_REPORT_ID_SECD  0x02 /* FW-PTP Absolute data ReportID */
 #define U1_FEATURE_REPORT_ID		0x05 /* Feature ReportID */
 #define U1_SP_ABSOLUTE_REPORT_ID	0x06 /* Feature ReportID */
 
@@ -368,6 +369,7 @@ static int u1_raw_event(struct alps_dev *hdata, u8 *data, int size)
 	case U1_FEATURE_REPORT_ID:
 		break;
 	case U1_ABSOLUTE_REPORT_ID:
+	case U1_ABSOLUTE_REPORT_ID_SECD:
 		for (i = 0; i < hdata->max_fingers; i++) {
 			u8 *contact = &data[i * 5];
 
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 4 lines · Caiyuan Xie

From: Caiyuan Xie <[email protected]>

<Change list>
-support other device which report id is 2.

I've changed the patch title and changelog a little bit so that it's in line with the general kernel changelog style, and applied.

Please check how it looks like for the commit, and try to get closer to it with any future submissions.

Thanks!

Signature · 2 lines
Jiri Kosina
SUSE Labs