Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3286294pxk; Mon, 21 Sep 2020 09:43:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYdrgG6JxXHiixSikGyxDW/uACMb8VVTNO3H7TLHk6Ex95H+dlDRxiWVQP6BrJRcjJD0ss X-Received: by 2002:a17:906:914b:: with SMTP id y11mr310677ejw.145.1600706586235; Mon, 21 Sep 2020 09:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600706586; cv=none; d=google.com; s=arc-20160816; b=P64CEu/GtRr3RQkdg1JV7e2rPWxKPJCDNJCmtLNZDds6LS424VKcgqMbAmF8PP2CBR xs0xULtLh2jyjOtAcQwkOLiLbOWGesE04DW8nvrZUr4oyFSlyDTlrvPmJq/cTkP4ApT+ gIq+owk03ytM4Gb3HazD9lUhqV2r0Zo57IIiryVdQtT9h/hvJR5diW5s5/P1Ad2LcV7X uzgADXfGxbAIq24PSkBtjNtDYc1NHNgwfrT9lw/Xp7UPVCR0cq4pKXxlD/KF4wWylDcm Pxf2UYVsjhBqQ/8f9TUSri5rJCid1yHXDZyQWodzRQZhfwCmpd//Nxe/G5T4eFcCTbEX nDnA== 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=ZcUrQSzHFDwns2705OxbCAylvJQ9Rh5ES44EI/9ijPs=; b=gBbW9oRPyRKOWcS2dqNHmZBqZHqqKV4UrRlfL7m5zMk9vC62fZL/+oYN8xE6ESB1Uo kestwzL0xuEAx5V1Wlh5WSNGPXQCzB1H/x0fDlennxThGqPbBT3AyI6wvwXY3OBg9cGg GBdtze9pNtoN621gjqODd4zu/4dhcWNMbVMbGlIID8W9psoyJN0PO4HeKYZGrOZvA+l9 vjXljIAqEuquwN4n/jae600ij0FgNR51fsSt/t1kqnmUaj+roqe3u0Qxsg/tKo3vqDfK MGbUiVkRRQkXCb54vc7TCAeWyjq11vkPPAsud6Hd6vxwed5xIA1KOtUsjiZ+HYwPm14A 28bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YMn5b6Tq; 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 u15si8699983edo.55.2020.09.21.09.42.42; Mon, 21 Sep 2020 09:43:06 -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=YMn5b6Tq; 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 S1729046AbgIUQkp (ORCPT + 99 others); Mon, 21 Sep 2020 12:40:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:43366 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729347AbgIUQkb (ORCPT ); Mon, 21 Sep 2020 12:40:31 -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 091772067D; Mon, 21 Sep 2020 16:40:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600706430; bh=+Hl0YBs/9utIV16UpKBcDuyGwpz2oOC/MgeEPAGwuuk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YMn5b6Tq22dzL/Dd648qwd2HDPtZsj4RDU6DyaXztWrAxQLFVX1JxwN96C3lhoujj +Zifa9JqwFmyNcbxVCQrRK8xVMz+O5d3IfNy3Ry61ORxs+AtbLaWw+4mQ1Eu+oCp5q P9zodwA8Kel4YvSO4ohN2FcKVAXMiariop5/HBus= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vincent Huang , Dmitry Torokhov Subject: [PATCH 4.14 89/94] Input: trackpoint - add new trackpoint variant IDs Date: Mon, 21 Sep 2020 18:28:16 +0200 Message-Id: <20200921162039.629237110@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921162035.541285330@linuxfoundation.org> References: <20200921162035.541285330@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 @@ -20,10 +20,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 @@ -27,10 +27,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