Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3291301pxk; Mon, 21 Sep 2020 09:50:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwn/lwp9+ZJAilgHDvbCbNyxMJ5WLqR4LodxLiHB6lBuG7fWxS2AGigu3Gw/OhzmsGFscu3 X-Received: by 2002:a17:906:5e59:: with SMTP id b25mr368728eju.414.1600707036837; Mon, 21 Sep 2020 09:50:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600707036; cv=none; d=google.com; s=arc-20160816; b=kBPJPUDOPs9fpBdR9ruVJ13DR7Fl7tEtJt/oU7F/QPT/QGOkEuefE5zZVsAsZzTDWG x9sQZiWD/dmLq+XNaiABbfmCLfaUarI78JvjHJfuLsAW9QiDJwE9nN7K5Bp1V2MIrEBC b326UMUFxxMt65qtCwxPQUva5QxeI+Vya/AW7iYX8wzrEoJdq4wn6GdmlJa9stBoO2um LW+J5tgAWIVJwZxaHIjy1uVxbwltmE4fPQg0QhnYcTLdZ7htcrQpSD97s1wf2oBGaBH1 iJ2X/BAd/lPPWj0ayT+u7CMa4Z8PB1g6yMW4akVSppcZ/FjrFwGBxGiVzGg+l2UrMk1D bLIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GoYL5N2+km6/80oaK9QMtkkMc3Osv+EHly8RmG2TKxQ=; b=Iy7XND6rAo8f5c/7ElRGhmvBn7WubkikWxKBh6WLJ4GHRFKGTRiesBvY80/NKDGj80 KQfIAfT3Oe4h9QNxEtNUuidwCIK16sT1KNiGaDEaQ6J9SaL0I1H/EjqEKjxYIplCDxuM Tu0Vzi6efpmlOvFmGWXpGcM5Kpf0DynLrCp3eMw8cUVDPWKMLH+36xe2eXIDGb8pVzA0 GJiVJpjxwdVKhafH5qxB6aUwiWrdBJzrb5ZYUbIzF+s/DMYgbYt2uot1jQ2rQkSfqHHZ te+gYcddctS5gtQdDDE2B03x9kfxmwXmvjHI0rNpPrCFblmiynbE3exVcs/I+ipIMWAj w9Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0Pv0BG14; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si9155914eja.565.2020.09.21.09.50.13; Mon, 21 Sep 2020 09:50:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0Pv0BG14; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729535AbgIUQsA (ORCPT + 99 others); Mon, 21 Sep 2020 12:48:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:54800 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729785AbgIUQro (ORCPT ); Mon, 21 Sep 2020 12:47:44 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8914920874; Mon, 21 Sep 2020 16:47:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600706864; bh=KoiQewurUmTji65mVdc6Lfdy0c2nwr0m75yeBPHoyiI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0Pv0BG14BG5OpbqASd3XtdDyn2C68mvfvfCSFuXgbZ7ApGKRkJBC5tZfiX7Bqg30A 2ukLV5qLjRwphpMwibwst2WbYJYJmcgKznxWqCZuUAq33NUltZE5uiWIzDWZ07+jkO SxDwoP/QbCenDQr9txFniNFDnL4xJWFYD1lhuM5M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vincent Huang , Dmitry Torokhov Subject: [PATCH 5.8 096/118] Input: trackpoint - add new trackpoint variant IDs Date: Mon, 21 Sep 2020 18:28:28 +0200 Message-Id: <20200921162040.825467744@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921162036.324813383@linuxfoundation.org> References: <20200921162036.324813383@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vincent Huang commit 6c77545af100a72bf5e28142b510ba042a17648d upstream. Add trackpoint variant IDs to allow supported control on Synaptics trackpoints. Signed-off-by: Vincent Huang Link: https://lore.kernel.org/r/20200914120327.2592-1-vincent.huang@tw.synaptics.com Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/mouse/trackpoint.c | 10 ++++++---- drivers/input/mouse/trackpoint.h | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) --- a/drivers/input/mouse/trackpoint.c +++ b/drivers/input/mouse/trackpoint.c @@ -17,10 +17,12 @@ #include "trackpoint.h" static const char * const trackpoint_variants[] = { - [TP_VARIANT_IBM] = "IBM", - [TP_VARIANT_ALPS] = "ALPS", - [TP_VARIANT_ELAN] = "Elan", - [TP_VARIANT_NXP] = "NXP", + [TP_VARIANT_IBM] = "IBM", + [TP_VARIANT_ALPS] = "ALPS", + [TP_VARIANT_ELAN] = "Elan", + [TP_VARIANT_NXP] = "NXP", + [TP_VARIANT_JYT_SYNAPTICS] = "JYT_Synaptics", + [TP_VARIANT_SYNAPTICS] = "Synaptics", }; /* --- a/drivers/input/mouse/trackpoint.h +++ b/drivers/input/mouse/trackpoint.h @@ -24,10 +24,12 @@ * 0x01 was the original IBM trackpoint, others implement very limited * subset of trackpoint features. */ -#define TP_VARIANT_IBM 0x01 -#define TP_VARIANT_ALPS 0x02 -#define TP_VARIANT_ELAN 0x03 -#define TP_VARIANT_NXP 0x04 +#define TP_VARIANT_IBM 0x01 +#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