diff mbox series

[v2] Input: trackpoint - add new trackpoint variant IDs

Message ID 20200914120327.2592-1-vincent.huang@tw.synaptics.com (mailing list archive)
State Accepted
Commit 6c77545af100a72bf5e28142b510ba042a17648d
Headers show
Series [v2] Input: trackpoint - add new trackpoint variant IDs | expand

Commit Message

Vincent Huang Sept. 14, 2020, 12:03 p.m. UTC
Add trackpoint variant IDs to allow supported control on Synaptics
trackpoints

Signed-off-by: Vincent Huang <vincent.huang@tw.synaptics.com>
---
 drivers/input/mouse/trackpoint.c | 2 ++
 drivers/input/mouse/trackpoint.h | 2 ++
 2 files changed, 4 insertions(+)

Comments

Dmitry Torokhov Sept. 14, 2020, 7:25 p.m. UTC | #1
On Mon, Sep 14, 2020 at 08:03:27PM +0800, Vincent Huang wrote:
> Add trackpoint variant IDs to allow supported control on Synaptics
> trackpoints
> 
> Signed-off-by: Vincent Huang <vincent.huang@tw.synaptics.com>

Applied, thank you.
diff mbox series

Patch

diff --git a/drivers/input/mouse/trackpoint.c b/drivers/input/mouse/trackpoint.c
index 3eefee2ee2a1..dde4c9d8d6bc 100644
--- a/drivers/input/mouse/trackpoint.c
+++ b/drivers/input/mouse/trackpoint.c
@@ -21,6 +21,8 @@  static const char * const trackpoint_variants[] = {
 	[TP_VARIANT_ALPS]	= "ALPS",
 	[TP_VARIANT_ELAN]	= "Elan",
 	[TP_VARIANT_NXP]	= "NXP",
+	[TP_VARIANT_JYT_SYNAPTICS]	= "JYT_Synaptics",
+	[TP_VARIANT_SYNAPTICS]	= "Synaptics",
 };
 
 /*
diff --git a/drivers/input/mouse/trackpoint.h b/drivers/input/mouse/trackpoint.h
index 5cb93ed26085..42eda7d4ba08 100644
--- a/drivers/input/mouse/trackpoint.h
+++ b/drivers/input/mouse/trackpoint.h
@@ -28,6 +28,8 @@ 
 #define TP_VARIANT_ALPS		0x02
 #define TP_VARIANT_ELAN		0x03
 #define TP_VARIANT_NXP		0x04
+#define TP_VARIANT_JYT_SYNAPTICS		0x05
+#define TP_VARIANT_SYNAPTICS		0x06
 
 /*
  * Commands