From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8019C43387 for ; Wed, 26 Dec 2018 23:00:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7BEFF2070B for ; Wed, 26 Dec 2018 23:00:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545865237; bh=ymXvTBGw6fJrAWdcqwE3+GO8+guEjMNJfaRL7OZHssk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Ic3QiL9vh7puoEnXS2Qsu5iypPrTMrGziz8uYNFsgnbeNmjgBFFcLyrYzSjG64flD rwindTBMaKn07jVmcXOuW2fVt9Yi9a6jbFz5C1cH/4YDnYd6rad5jdRRfSobr3hr6j NzJ4ly/5erpx9pGSBN+zQu4nYZn5XEQA2USgnp6U= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730460AbeLZXAg (ORCPT ); Wed, 26 Dec 2018 18:00:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:55236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729936AbeLZWxz (ORCPT ); Wed, 26 Dec 2018 17:53:55 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EDFFD218EA; Wed, 26 Dec 2018 22:53:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545864834; bh=ymXvTBGw6fJrAWdcqwE3+GO8+guEjMNJfaRL7OZHssk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sV3T5U45223bDnX7Zw4RCrC3zb3vjX1TkiC1fvpdVGgMI0DXWOnJNEJylZPHYPT0K rbIDi9kKzGl/pomauiVs0yjrvDCXeRVliFAviVtoJXWwZ+6x8w2YANG8f80xtrQhcK 778QtGAyug7fqYgi2GVRedaSwmCJsM71zUp0lmQY= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Peter Hutterer , Benjamin Tissoires , Sasha Levin , linux-input@vger.kernel.org Subject: [PATCH AUTOSEL 4.9 05/35] Input: restore EV_ABS ABS_RESERVED Date: Wed, 26 Dec 2018 17:41:12 -0500 Message-Id: <20181226224142.150866-5-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181226224142.150866-1-sashal@kernel.org> References: <20181226224142.150866-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peter Hutterer [ Upstream commit c201e3808e0e4be9b98d192802085a9f491bd80c ] 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 Signed-off-by: Benjamin Tissoires Signed-off-by: Sasha Levin --- 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 3af60ee69053..b584868e1b26 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -739,6 +739,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.1