Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4778664pxu; Wed, 21 Oct 2020 05:18:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqpdlxRs91vEsw9L5GZR4wok2q2ZuXAuGQE0xpzw1dAb3jdHHsF8ztNntXKoUlMgPwvB3I X-Received: by 2002:a17:906:f205:: with SMTP id gt5mr3176183ejb.48.1603282732274; Wed, 21 Oct 2020 05:18:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603282732; cv=none; d=google.com; s=arc-20160816; b=vYUbF3CKjlZi8embm+oe4F0yLrX6YlHehd0ahdVC68ijpFS55Iv9i/d2ZGQObx8vLj qMwiZMIQtny3tiD714WyzIVlan6je6mTR+hwaO7BLPA+E11Mbv48nE9afYjVkkuFoxwp HruOm1sCLLtzQtBaOOaW1W7l1+FquwJIQKo8kFcjVRtF75kcrKhp/cf85yfDJtAcHZNc l0UhU0qTdWHiy0NPi7PNvKCbGKB6C0ROFeNSmoTkNjDJv1IdaMgmC0fQFGP1QcoQoG0k F+kKIVfxAQ9u4KfJWSb/9raSl8BT0PHcUtZGNpv1jFhiyDhaqTF2ZDGm+T2EHqToYXTT TQpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:date:message-id:cc:to:from:sender :reply-to:subject:mime-version:dkim-signature:dkim-filter; bh=6UAabylJqz87M04J55ohv4SkzPKemiXY8kaIy1S+zFA=; b=pwyJLRYpOkSSBsuYsnsn5ptQjiohSA2OQHnRTa5Sln7zy2nRYXVXS87RhzwYda0y7c nLsN2oPbuEcTY+o9JczJBA0RCVOkK+QhqA0rJ2fyGkoa0GDufdtYdLWKepKt9dYRBFLR sy8UGny9Y3fqbs3heT7akJ0Yy3Hlj26FFWwipf0LzZyYqX5DMo2oYqCOzCzyBsa6neIB tDKtmRgq7BiVz0xgC+uSWOgGYiwTu4aCffKFG/HvnuzkQ7O486lm3oBqy1ZjQDOVBWnd i0wt/ZzW6SXp9COtZbggs6Wsexyh/wZoXuIEDgUyfN1iU/uvGrBlinrpHIML6NefFvmE ihGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ghk+deIZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t2si1288205edc.547.2020.10.21.05.18.30; Wed, 21 Oct 2020 05:18:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ghk+deIZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2411591AbgJUDMV (ORCPT + 99 others); Tue, 20 Oct 2020 23:12:21 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:42397 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2411587AbgJUDMU (ORCPT ); Tue, 20 Oct 2020 23:12:20 -0400 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20201021031218epoutp01b9466f06bc219fc937ad864fa6428b18~-41M4g3Ic3225032250epoutp015 for ; Wed, 21 Oct 2020 03:12:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20201021031218epoutp01b9466f06bc219fc937ad864fa6428b18~-41M4g3Ic3225032250epoutp015 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1603249938; bh=6UAabylJqz87M04J55ohv4SkzPKemiXY8kaIy1S+zFA=; h=Subject:Reply-To:From:To:CC:Date:References:From; b=ghk+deIZMO61nOMzS6HWTJIDhMdaUszif1M4585hLUQ6+Wg+KRdyK+oX4BLHerizg DWT/2VMTtkxluRaM2BNsvi+cyCHHLeq0eWL8Wn4ZISHLlNqHY6wJjCz7WZ0xDsGzmE EuRf2JjOWPDvtuda1xeJsLOWZFde4v5fRIu6s3/I= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20201021031218epcas1p43efec3ce831fc57cfc62133c0b545073~-41Ma3TEZ1675516755epcas1p4Q; Wed, 21 Oct 2020 03:12:18 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.40.165]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4CGFsY3mHVzMqYkb; Wed, 21 Oct 2020 03:12:17 +0000 (GMT) X-AuditID: b6c32a37-8afff7000000256e-61-5f8fa710a864 Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id D5.2E.09582.017AF8F5; Wed, 21 Oct 2020 12:12:16 +0900 (KST) Mime-Version: 1.0 Subject: [PATCH] FROMLIST: input: add 2 kind of switch Reply-To: hj2.im@samsung.com Sender: HyungJae Im From: HyungJae Im To: "manivannan.sadhasivam@linaro.org" , "gregkh@linuxfoundation.org" , "linux-kernel@vger.kernel.org" , "linux-input@vger.kernel.org" , "rydberg@bitmath.org" , "dmitry.torokhov@gmail.com" CC: HyungJae Im X-Priority: 3 X-Content-Kind-Code: NORMAL X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20201021031216epcms1p556d8d7d5d763ec47f67cd8cbe3972935@epcms1p5> Date: Wed, 21 Oct 2020 12:12:16 +0900 X-CMS-MailID: 20201021031216epcms1p556d8d7d5d763ec47f67cd8cbe3972935 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpgk+LIzCtJLcpLzFFi42LZdljTQFdgeX+8wZJ34haHF71gtGhevJ7N YsF0O4ubn76xWlzeNYfN4m5LJ6vFiW/TmBzYPT6vesXqsXPWXXaPO9f2sHnsn7uG3aNvyypG j8+b5ALYonJsMlITU1KLFFLzkvNTMvPSbZW8g+Od403NDAx1DS0tzJUU8hJzU22VXHwCdN0y c4BOUVIoS8wpBQoFJBYXK+nb2RTll5akKmTkF5fYKqUWpOQUGBoU6BUn5haX5qXrJefnWhka GBiZAlUm5GT82TGXqeANX8XSrd1sDYx7eLoYOTgkBEwktmxV6mLk4hAS2MEo8eDaHGaQOK+A oMTfHcJdjJwcwgJmEmtWHGIBCQsJyEh07TGCCGtILG35zAhiswmoSfxes4cNZIyIwAcmiQPf XoMlmAVUJPo2dYPZEgK8EjPan7JA2NIS25dvhYqLStxc/ZYdxn5/bD5UXESi9d5ZZghbUOLB z92MML1LryxmAlkmIdDOKHHx5i9WCKeFUWLB0sNsEFX6Elf6ZzKB2LwCvhIvZv8A62YRUJU4 uXMWVI2LxOyvf9ggLpWX2P4W4nlmAU2J9bv0IUoUJXb+ngv1DJ/Eu689rDDP7Jj3hAnCVpDY uOgT1EgxiVnzbkM96SGx9PRJsBohgUCJky+OMU5glJ+FCN5ZSBbPQli8gJF5FaNYakFxbnpq sWGBMXKEbmIEJ0Ut8x2M095+0DvEyMTBeIhRgoNZSYR3AmtfvBBvSmJlVWpRfnxRaU5q8SFG U6CXJzJLiSbnA9NyXkm8oamRsbGxhYmZuZmpsZI47x/tjnghgfTEktTs1NSC1CKYPiYOTqkG puUObj7MaxlX/V/wPTZ8wsVze7uniue6BXHp3l7854B6d/K0yT3Hv0RNmLQzfMO0pTbzT9tW VKxvW6R2eJ9yaXH6s4d3uItVbJ+f+7mT4fuLu8wVy0wt3hqqJNzTjP60pea5zObaE5fDOC8x LLQumCz4PWDFDxkh3TaWinlPOZdIyTFETu/WKN3d6FGg/aHihalIyUyV7lcrnV+8lDrGFHKo i0X+14IGhvdLpggtn/Wtr/Ds299fv1rGzdzpmbr9XcZGmzd/jqROKov/x777hMirr0fu5usF 7u0szd2589GFBXfdfl0MFDfOeDprz79WdW2WUwwnHNwOXO6e3Le8vcrSXJP/vuZhxdO6KmVd QkuUWIozEg21mIuKEwFb32trEwQAAA== DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20201021031216epcms1p556d8d7d5d763ec47f67cd8cbe3972935 References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From ec9859ee01b7bc0e04255971e0fe97348847dab7 Mon Sep 17 00:00:00 2001 From: "hj2.im" Date: Tue, 20 Oct 2020 16:57:04 +0900 Subject: [PATCH] FROMLIST: input: add 2 kind of switch We need support to various accessories on the device, some switch does not exist in switch list. So added switch for the following purpose. SW_COVER_ATTACHED is for the checking the cover attached or not on the device. SW_EXT_PEN_ATTACHED is for the checking the external pen attached or not on the device Signed-off-by: hj2.im --- include/linux/mod_devicetable.h | 2 +- include/uapi/linux/input-event-codes.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 5b08a473cdba..897f5a3e7721 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -320,7 +320,7 @@ struct pcmcia_device_id { #define INPUT_DEVICE_ID_LED_MAX 0x0f #define INPUT_DEVICE_ID_SND_MAX 0x07 #define INPUT_DEVICE_ID_FF_MAX 0x7f -#define INPUT_DEVICE_ID_SW_MAX 0x10 +#define INPUT_DEVICE_ID_SW_MAX 0x12 #define INPUT_DEVICE_ID_PROP_MAX 0x1f #define INPUT_DEVICE_ID_MATCH_BUS 1 diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h index 0c2e27d28e0a..8ca2acee1f92 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -889,7 +889,9 @@ #define SW_MUTE_DEVICE 0x0e /* set = device disabled */ #define SW_PEN_INSERTED 0x0f /* set = pen inserted */ #define SW_MACHINE_COVER 0x10 /* set = cover closed */ -#define SW_MAX 0x10 +#define SW_COVER_ATTACHED 0x11 /* set = cover attached */ +#define SW_EXT_PEN_ATTACHED 0x12 /* set = external pen attached */ +#define SW_MAX 0x12 #define SW_CNT (SW_MAX+1) /* -- 2.11.0