]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Input: trackpoint - enable Synaptics trackpoints
authorVincent Huang <vincent.huang@tw.synaptics.com>
Mon, 28 Sep 2020 23:19:05 +0000 (16:19 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 28 Sep 2020 23:23:41 +0000 (16:23 -0700)
Add Synaptics IDs in trackpoint_start_protocol() to mark them as valid.

Signed-off-by: Vincent Huang <vincent.huang@tw.synaptics.com>
Fixes: 2396240bd4ab ("Input: trackpoint - add new trackpoint variant IDs")
Reviewed-by: Harry Cutts <hcutts@chromium.org>
Tested-by: Harry Cutts <hcutts@chromium.org>
Link: https://lore.kernel.org/r/20200924053013.1056953-1-vincent.huang@tw.synaptics.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/trackpoint.c

index 854d5e7587241024c4bdd08398402db16c88b7be..ef2fa0905208d182a521af062ae902888aff098c 100644 (file)
@@ -282,6 +282,8 @@ static int trackpoint_start_protocol(struct psmouse *psmouse,
        case TP_VARIANT_ALPS:
        case TP_VARIANT_ELAN:
        case TP_VARIANT_NXP:
+       case TP_VARIANT_JYT_SYNAPTICS:
+       case TP_VARIANT_SYNAPTICS:
                if (variant_id)
                        *variant_id = param[0];
                if (firmware_id)