From patchwork Tue Aug 27 11:23:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Herrmann X-Patchwork-Id: 2850136 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B7F3F9F271 for ; Tue, 27 Aug 2013 11:24:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9D6B4204A3 for ; Tue, 27 Aug 2013 11:24:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7D886204A2 for ; Tue, 27 Aug 2013 11:24:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753009Ab3H0LYJ (ORCPT ); Tue, 27 Aug 2013 07:24:09 -0400 Received: from mail-ee0-f50.google.com ([74.125.83.50]:52246 "EHLO mail-ee0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753296Ab3H0LYG (ORCPT ); Tue, 27 Aug 2013 07:24:06 -0400 Received: by mail-ee0-f50.google.com with SMTP id d51so2199487eek.37 for ; Tue, 27 Aug 2013 04:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=kNBUiC59PwiccuS22RdBMtUBKxgnRLm1gGqX+W6c6EI=; b=MBDwHsLT8iqC2y2Yc0LwKdqft7CQm7Ju5szlGkxYTWtz1c3pFo8Kim7iL/QgtRIli1 6s2bTjwT1Cvq0GSD98LUfkWwmB3yeyClkAQzDC+WKQV8nzEXHIJWO2bsJaoRT47Mfq+j n8fcZA1/+6jnN3I1StyDt51eDNdGv1DsZqu0Yfzeaq5OfCbeQqX07+oIhDDLmDVGJdOo mUGNO8T8WBd8PU4F9cOF8ukCZ8zaCJ9QboKai5Qg5hn9YBer7YFNmj075R6GTG4MAnCr TsG6YXxs5M67VBrOKgxe8pml1GV5ALviYQwySRRkinUwxCgeB2u/2cS7jRze0NAipbC6 sJrQ== X-Received: by 10.15.31.12 with SMTP id x12mr2287863eeu.75.1377602645514; Tue, 27 Aug 2013 04:24:05 -0700 (PDT) Received: from localhost.localdomain (stgt-5f71a868.pool.mediaWays.net. [95.113.168.104]) by mx.google.com with ESMTPSA id j7sm28409963eeo.15.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 27 Aug 2013 04:24:04 -0700 (PDT) From: David Herrmann To: linux-input@vger.kernel.org Cc: Dmitry Torokhov , David Herrmann Subject: [PATCH] Input: add SYN_MAX and SYN_CNT constants Date: Tue, 27 Aug 2013 13:23:52 +0200 Message-Id: <1377602632-23259-1-git-send-email-dh.herrmann@gmail.com> X-Mailer: git-send-email 1.8.4 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP SYN_* events are special and not enabled via set_bit() for devices. Hence, they haven't been really needed, yet. However, user-space can still make great use of that for int->string debugging helpers or alike. Also, I haven't seen any reason not to define these, so here they are. Signed-off-by: David Herrmann Acked-by: Peter Hutterer --- include/uapi/linux/input.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h index 4649ee3..2fb6fae 100644 --- a/include/uapi/linux/input.h +++ b/include/uapi/linux/input.h @@ -194,6 +194,8 @@ struct input_keymap_entry { #define SYN_CONFIG 1 #define SYN_MT_REPORT 2 #define SYN_DROPPED 3 +#define SYN_MAX 0xf +#define SYN_CNT (SYN_MAX+1) /* * Keys and buttons