* [PATCH] support other device which report id is 2
@ 2020-05-22 9:06 Caiyuan Xie
2020-06-16 15:31 ` Jiri Kosina
0 siblings, 1 reply; 2+ messages in thread
From: Caiyuan Xie @ 2020-05-22 9:06 UTC (permalink / raw)
To: jikos, benjamin.tissoires; +Cc: linux-input, Caiyuan Xie
From: Caiyuan Xie <caiyuan.xie@cn.alps.com>
<Change list>
-support other device which report id is 2.
Signed-off-by: Caiyuan Xie <caiyuan.xie@cn.alps.com>
---
drivers/hid/hid-alps.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/hid/hid-alps.c b/drivers/hid/hid-alps.c
index b2ad319a74b9..d33f5abc8f64 100644
--- a/drivers/hid/hid-alps.c
+++ b/drivers/hid/hid-alps.c
@@ -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];
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] support other device which report id is 2
2020-05-22 9:06 [PATCH] support other device which report id is 2 Caiyuan Xie
@ 2020-06-16 15:31 ` Jiri Kosina
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2020-06-16 15:31 UTC (permalink / raw)
To: Caiyuan Xie; +Cc: benjamin.tissoires, linux-input, Caiyuan Xie
On Fri, 22 May 2020, Caiyuan Xie wrote:
> From: Caiyuan Xie <caiyuan.xie@cn.alps.com>
>
> <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!
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-16 15:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-22 9:06 [PATCH] support other device which report id is 2 Caiyuan Xie
2020-06-16 15:31 ` Jiri Kosina
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.