Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10043218imu; Wed, 5 Dec 2018 15:04:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/V8JG6NsIHHNnGvPYE/tMfpRRxYOLPpzGYpbg1SSdpciF+ya0ROQFt7mRe5rW6QJUi+7T60 X-Received: by 2002:a17:902:442:: with SMTP id 60mr10574232ple.73.1544051089510; Wed, 05 Dec 2018 15:04:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544051089; cv=none; d=google.com; s=arc-20160816; b=MG6sp/bw4NvkTjTVtCQD8f04ZgdXrLBRfSICDLq/E0b3zZfuJEd8Q+52fiSchJLJbX X6ZJgRlrzYfUkZpBgUcmfYcaIz3HqeewrT2MFWwb5i5p4IVgWSdturNI80lrpwQwSFO+ pCAGJWmwxXrzi3M7SeivuQ6eI+1NGjyQJoNkKej4zHxfmJOD5H4231TQEjWNT1M9+J5a lVCCOzsYtOswQLiLFzTgAlBDBFUkW7oPhkSo7LJKwIu1HG358HvgXCb5NFAq2YEVRwQm 1LlEDBzYwUZX9oNdrWQGmD94q5JJ9IAf7IrZUTfa7a7/cvT1yETYLo/LuKeo/7eHTICG mmiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=3pujw0YiLkkBa9tOiVNUExfYthelZKw1I32srKIEGCk=; b=dbwPFq9fjEK6oh5GwOG8KNEU3I4m1QaYDoDWNVe5vOES2vfB9R786TBtolzsVq2KKS h0IpHwLSkA9fIKzaw6eoX1NOtSPIUunu7KYTdKhcM25V6eC55gzYiFhJU90JvkaONlwn 0AF+adT5du54e4sKgsQOhr+JVG0SyZ2x7gYrTImLYPzxbM7cEsueMcKqjUeGi0vTPt8v GJMgTJRp3iuEST/aTSVs14GLsHZpo3z2wgKJc/Loxx1av6YYi+XU7cxrwem+/YmRPBLX Q+59GAQTE//jDMIRsngwXejgtNXG3mNFW51MzDV8OHiwG71JMDEWygbgd7PWM5kL/q+G j8vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@who-t.net header.s=fm1 header.b=D22OYI0x; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=JKy65mpb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i189si22415916pfg.265.2018.12.05.15.04.31; Wed, 05 Dec 2018 15:04:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@who-t.net header.s=fm1 header.b=D22OYI0x; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=JKy65mpb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727741AbeLEXDq (ORCPT + 99 others); Wed, 5 Dec 2018 18:03:46 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:50551 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727337AbeLEXDq (ORCPT ); Wed, 5 Dec 2018 18:03:46 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 60C4920BBE; Wed, 5 Dec 2018 18:03:43 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 05 Dec 2018 18:03:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=who-t.net; h= date:from:to:cc:subject:message-id:mime-version:content-type; s= fm1; bh=3pujw0YiLkkBa9tOiVNUExfYthelZKw1I32srKIEGCk=; b=D22OYI0x E5xAdJjl4Ah+AVukTRG43IReyjY94M5Sj175NqnjiVGV8CrGdEW+c6qG2MhAEIEr ViXELDZolrrQi8H00DuK8ZpXp0UV3jfnnzj+zNRoOORFHkQI15HcOCuRhu6Zxyi7 hrnMBYVd9v19BfxsGxHP53GYg7gTEP9j39NgEw+LF6RhsjY4XT2xyGzcReSy01KQ bCCtK4pxtdwtXXy6uKMWZySViUEDiJ2zALpPDbY4kf+9QaH4JsU4dGRCTZu+b3mE RoVgMJWbPhPkMR8rQel4q0cgFsZU0if3J4M9PwyR0RUMxUh9C3VBuxJO3pdVqUP/ u0zsXuOksSx1BA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=3pujw0YiLkkBa9tOiVNUExfYthelZ Kw1I32srKIEGCk=; b=JKy65mpbmiSem2V3B4vto6I0Ir7eM4Oa6SObPI6UQIzR0 vwcY9yjL+/Q91TeaiyQ3abiMJArgRC+59s829pkH0RlWKg3/F+I0+dEcOpFwWw9s UikpXzLFBvlaZXtB8ottk2XPpCOhMfTJRKDcdS/niA72WE4BbLXF21bM3V/M+VUW yUE5xYUVdAmlmD1KsHUvTu2HfLEWQRCAheFL4NVuuxfwwBjtb4eCS8axMJRQPWqf Nd5fS3qwXWs1Frz9MaLq+LM3aEEZR1qpQEcfpeTXwZjsIBkXP61FMRIde3btVRhR WZV7w+MzzkXDml63freYRQKdLwFQ0G6in7l/jKqfw== X-ME-Sender: X-ME-Proxy: Received: from jelly (unknown [66.187.239.16]) by mail.messagingengine.com (Postfix) with ESMTPA id 2156E10324; Wed, 5 Dec 2018 18:03:40 -0500 (EST) Date: Thu, 6 Dec 2018 09:03:36 +1000 From: Peter Hutterer To: Benjamin Tissoires , linux-input@vger.kernel.org Cc: Dmitry Torokhov , linux-kernel@vger.kernel.org Subject: [PATCH] Input: restore EV_ABS ABS_RESERVED Message-ID: <20181205230336.GA23462@jelly> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ABS_RESERVED was added in d9ca1c990a7 and accidentally removed as part of ffe0e7cf290f5c9 when the high-resolution scrolling code was removed. Signed-off-by: Peter Hutterer --- include/uapi/linux/input-event-codes.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h index 3eb5a4c3d60a..ae366b87426a 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -752,6 +752,15 @@ #define ABS_MISC 0x28 +/* + * 0x2e is reserved and should not be used in input drivers. + * It was used by HID as ABS_MISC+6 and userspace needs to detect if + * the next ABS_* event is correct or is just ABS_MISC + n. + * We define here ABS_RESERVED so userspace can rely on it and detect + * the situation described above. + */ +#define ABS_RESERVED 0x2e + #define ABS_MT_SLOT 0x2f /* MT slot being modified */ #define ABS_MT_TOUCH_MAJOR 0x30 /* Major axis of touching ellipse */ #define ABS_MT_TOUCH_MINOR 0x31 /* Minor axis (omit if circular) */ -- 2.19.2