Skip to content

Commit aa3c439

Browse files
Caiyuan XieJiri Kosina
authored andcommitted
HID: alps: support devices with report id 2
Add support for devices which that have reports with id == 2 Signed-off-by: Caiyuan Xie <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent ca28aff commit aa3c439

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/hid/hid-alps.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
#define U1_MOUSE_REPORT_ID 0x01 /* Mouse data ReportID */
2727
#define U1_ABSOLUTE_REPORT_ID 0x03 /* Absolute data ReportID */
28+
#define U1_ABSOLUTE_REPORT_ID_SECD 0x02 /* FW-PTP Absolute data ReportID */
2829
#define U1_FEATURE_REPORT_ID 0x05 /* Feature ReportID */
2930
#define U1_SP_ABSOLUTE_REPORT_ID 0x06 /* Feature ReportID */
3031

@@ -368,6 +369,7 @@ static int u1_raw_event(struct alps_dev *hdata, u8 *data, int size)
368369
case U1_FEATURE_REPORT_ID:
369370
break;
370371
case U1_ABSOLUTE_REPORT_ID:
372+
case U1_ABSOLUTE_REPORT_ID_SECD:
371373
for (i = 0; i < hdata->max_fingers; i++) {
372374
u8 *contact = &data[i * 5];
373375

0 commit comments

Comments
 (0)