Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6c77545

Browse files
synavincentdtor
authored andcommitted
Input: trackpoint - add new trackpoint variant IDs
Add trackpoint variant IDs to allow supported control on Synapticstrackpoints.Signed-off-by: Vincent Huang <vincent.huang@tw.synaptics.com>Link:https://lore.kernel.org/r/20200914120327.2592-1-vincent.huang@tw.synaptics.comCc: stable@vger.kernel.orgSigned-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parentc4440b8 commit6c77545

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

‎drivers/input/mouse/trackpoint.c‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
#include"trackpoint.h"
1818

1919
staticconstchar*consttrackpoint_variants[]= {
20-
[TP_VARIANT_IBM]="IBM",
21-
[TP_VARIANT_ALPS]="ALPS",
22-
[TP_VARIANT_ELAN]="Elan",
23-
[TP_VARIANT_NXP]="NXP",
20+
[TP_VARIANT_IBM]="IBM",
21+
[TP_VARIANT_ALPS]="ALPS",
22+
[TP_VARIANT_ELAN]="Elan",
23+
[TP_VARIANT_NXP]="NXP",
24+
[TP_VARIANT_JYT_SYNAPTICS]="JYT_Synaptics",
25+
[TP_VARIANT_SYNAPTICS]="Synaptics",
2426
};
2527

2628
/*

‎drivers/input/mouse/trackpoint.h‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@
2424
* 0x01 was the original IBM trackpoint, others implement very limited
2525
* subset of trackpoint features.
2626
*/
27-
#defineTP_VARIANT_IBM0x01
28-
#defineTP_VARIANT_ALPS0x02
29-
#defineTP_VARIANT_ELAN0x03
30-
#defineTP_VARIANT_NXP0x04
27+
#defineTP_VARIANT_IBM0x01
28+
#defineTP_VARIANT_ALPS0x02
29+
#defineTP_VARIANT_ELAN0x03
30+
#defineTP_VARIANT_NXP0x04
31+
#defineTP_VARIANT_JYT_SYNAPTICS0x05
32+
#defineTP_VARIANT_SYNAPTICS0x06
3133

3234
/*
3335
* Commands

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp