From patchwork Thu Oct 3 22:31:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ping Cheng X-Patchwork-Id: 2986381 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 37AE79F288 for ; Thu, 3 Oct 2013 22:31:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7C13B201DD for ; Thu, 3 Oct 2013 22:31:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 20114201BD for ; Thu, 3 Oct 2013 22:31:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755763Ab3JCWbP (ORCPT ); Thu, 3 Oct 2013 18:31:15 -0400 Received: from mail-pb0-f48.google.com ([209.85.160.48]:56872 "EHLO mail-pb0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755643Ab3JCWbO (ORCPT ); Thu, 3 Oct 2013 18:31:14 -0400 Received: by mail-pb0-f48.google.com with SMTP id ma3so3094475pbc.35 for ; Thu, 03 Oct 2013 15:31:13 -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=AkWDkAKVwsy9dGrJ9oBha4SFeq/RBmx/mMDDs1+NTlM=; b=xruhX2XREDdzNGkNkZO9no7dEFxxzSlrnrakq9TcIirZG3uenMcFuGYWezUHVu1Xb8 TlQDTuDQLiAj+G8zekA2jivyeUZDkPZJM42VtL8pQ7ZTzj7Dpt3W98hGr9qi8CQtOV4v P/WRSuZwW5g2Kqbje5zWJ9sctzs13Dm9+pC2vbsr+3k4EwTn33i5ImEzAaDDpm7WCE9d KI/t2Nf5PyYaxKG6/AWo4efGLPcrlJbH7s20ljLsSQv+1AS3BaHjbXHTa9pH3q23nfbt X8aP+QBQBlQDFEZ+FydYLeZnPr3Du7uo3yBUfNWEdZlAMoE4JI388aDiptUPuiRlJTWm rQew== X-Received: by 10.68.251.133 with SMTP id zk5mr10793630pbc.69.1380839473810; Thu, 03 Oct 2013 15:31:13 -0700 (PDT) Received: from wacom-XPS-8500.wacom.com ([67.51.163.2]) by mx.google.com with ESMTPSA id go4sm10502683pbb.15.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 15:31:12 -0700 (PDT) From: Ping Cheng To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, rydberg@euromail.se, benjamin.tissoires@gmail.com, linux-kernel@vger.kernel.org, Ping Cheng Subject: [PATCH] input - input.h: Add a new switch event Date: Thu, 3 Oct 2013 15:31:07 -0700 Message-Id: <1380839467-27264-1-git-send-email-pingc@wacom.com> X-Mailer: git-send-email 1.8.1.2 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-7.4 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 One of Wacom's pen and touch capable models added a switch for users to turn on/off touch events. We need to report the state of this switch to userland. But, there is no existing switch event defined for this purpose. Luckily enough, there is a room for a new switch event. Signed-off-by: Ping Cheng Acked-by: Peter Hutterer for the principle, --- include/uapi/linux/input.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h index d08abf9..d4097b0 100644 --- a/include/uapi/linux/input.h +++ b/include/uapi/linux/input.h @@ -855,6 +855,7 @@ struct input_keymap_entry { #define SW_FRONT_PROXIMITY 0x0b /* set = front proximity sensor active */ #define SW_ROTATE_LOCK 0x0c /* set = rotate locked/disabled */ #define SW_LINEIN_INSERT 0x0d /* set = inserted */ +#define SW_TOUCH_ENABLED 0x0e /* set = touch switch turned on (touch events off) */ #define SW_MAX 0x0f #define SW_CNT (SW_MAX+1)