From patchwork Sat Mar 25 22:49:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 9644899 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 166FA601E9 for ; Sat, 25 Mar 2017 22:50:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F2A4F27165 for ; Sat, 25 Mar 2017 22:50:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E797727FA8; Sat, 25 Mar 2017 22:50:28 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 91FD227165 for ; Sat, 25 Mar 2017 22:50:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751210AbdCYWu2 (ORCPT ); Sat, 25 Mar 2017 18:50:28 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:54809 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751205AbdCYWu2 (ORCPT ); Sat, 25 Mar 2017 18:50:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=q9dgvq4YBzVKYciq8cswYPzMYlNQ+zvMe+L/EW1ZVTA=; b=l52sUXHSWLu0MIPJfpBogpqp/ 0rYrHvUuv28QrwoEMbfLFNRW87agWUrEhOwm00QdO7DzDaZZXOpFq3QNYVliykp0TtQswBCABKH9a 4YwciDabMm14vDW/3BExDxm25rfjgvQw6W+B73kSe2h0NovSxF23oWMWCOuTmt0RUrwYM45zhJ9X5 650hGB066PPrHnwCN4U5oWi/CPIFOFZmTSq8jvjcCOTPCP86pdR6G1rXULU1l1Sw8+A9NcgSIEW0z h11yps9FFUS8NY6Q3C2nsoI7X2CeB+WV+HMjXFscmsgpkxVJ8XEwZ+OtXhHy/q9YBeTI3Mdu/lnHf HOROqwoBw==; Received: from 177.205.100.127.dynamic.adsl.gvt.net.br ([177.205.100.127] helo=smtp.w2.samsung.com) by bombadil.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1cruVG-0007Jn-Q7; Sat, 25 Mar 2017 22:49:47 +0000 Received: from mchehab by smtp.w2.samsung.com with local (Exim 4.87) (envelope-from ) id 1cruVD-0000lW-A8; Sat, 25 Mar 2017 19:49:43 -0300 From: Mauro Carvalho Chehab To: linux-input@vger.kernel.org Cc: Mauro Carvalho Chehab , Dmitry Torokhov , Peter Hutterer , Benjamin Tissoires , Hans Verkuil , Mauro Carvalho Chehab , Douglas Anderson , Kamil Debski , Ping Cheng Subject: [PATCH RFC 1/4] input: add an EV_REL event for high-res vertical wheel Date: Sat, 25 Mar 2017 19:49:39 -0300 Message-Id: X-Mailer: git-send-email 2.9.3 In-Reply-To: References: In-Reply-To: References: 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 As some devices can produce either low-res or high-res vertical wheel EV_REL events, add a new event to allow userspace to distinguish between them. Signed-off-by: Mauro Carvalho Chehab --- include/uapi/linux/input-event-codes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h index 3af60ee69053..23b2d377af59 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -703,6 +703,7 @@ #define REL_DIAL 0x07 #define REL_WHEEL 0x08 #define REL_MISC 0x09 +#define REL_HIRES_WHEEL 0x0a #define REL_MAX 0x0f #define REL_CNT (REL_MAX+1)