Skip to content

Commit 6c77545

Browse files
synavincentdtor
authored andcommitted
Input: trackpoint - add new trackpoint variant IDs
Add trackpoint variant IDs to allow supported control on Synaptics trackpoints. Signed-off-by: Vincent Huang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent c4440b8 commit 6c77545

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
static const char * const trackpoint_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-
#define TP_VARIANT_IBM 0x01
28-
#define TP_VARIANT_ALPS 0x02
29-
#define TP_VARIANT_ELAN 0x03
30-
#define TP_VARIANT_NXP 0x04
27+
#define TP_VARIANT_IBM 0x01
28+
#define TP_VARIANT_ALPS 0x02
29+
#define TP_VARIANT_ELAN 0x03
30+
#define TP_VARIANT_NXP 0x04
31+
#define TP_VARIANT_JYT_SYNAPTICS 0x05
32+
#define TP_VARIANT_SYNAPTICS 0x06
3133

3234
/*
3335
* Commands

0 commit comments

Comments
 (0)