From patchwork Wed Dec 5 23:03:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Hutterer X-Patchwork-Id: 10715015 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A10081731 for ; Wed, 5 Dec 2018 23:03:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 915562DFD7 for ; Wed, 5 Dec 2018 23:03:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85B0B2E058; Wed, 5 Dec 2018 23:03:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 215062E04E for ; Wed, 5 Dec 2018 23:03:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727630AbeLEXDq (ORCPT ); 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-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Martin Kepplinger Acked-by: Benjamin Tissoires Acked-by: Dmitry Torokhov --- 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) */