Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3022483ybv; Sat, 15 Feb 2020 09:01:04 -0800 (PST) X-Google-Smtp-Source: APXvYqyXQlQ31VKSAuHdXDuRC23QL90EKp/FBpvEArcSAhXJhioU0FeLBz/sxfxa4ixGJD6owfMm X-Received: by 2002:a05:6830:2102:: with SMTP id i2mr6300152otc.123.1581786064718; Sat, 15 Feb 2020 09:01:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581786064; cv=none; d=google.com; s=arc-20160816; b=s9n7odgTgg9PvvVvbvHF9r4RHyUyYarzjJeV8Bis7uWrAHCl9SC3b4/6931UvT7Fpm Wn+hDBpknB5lQBrQujWShXviqDd2ucmx5DUwa4OFrOZhk0YPEPDOceWofir9r+fUTjYT FwOKULmqWPuaFL/ecteY4dXW4GAoU6kSF2j2qGQGkHcRgLtIcN541JUQyr7bX8FcRiWb kSZgU5y9AutBB7YUI9aAKqSNro+or3az6xKqlVyrmj9WFkr7qdjtI0i8H5QyYrICbFvq v181Io4eLOvTDQ1BqnuHVH6S7gzx66KDSZkCxqbSbANuREshElS0Xx5zOQU+lHD6yb+c wN7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=xuSqKQckl8muEwKshU/FzUtts9aWAxkpxm3IlAs7oE0=; b=D+UC+A26lhUB11T2atp3D98yKSiy0MfhPiefBkKtX+Jenpz2WgjI/yeCXFnsGdBy7V x1i+im6wtslL2hGt6nreHDPrMagDtWdN1Mq3AVa2L0DXKZZ2B4Vovd46bFC8Oiu0wssy kgWYi9q8wkvVZwEqQQE7OsXAO0nyI1m6iovdAzPaSHs1kywZr2fDYIgq7ULNX4nWcgM9 1lYHMG0ebL/WHZtyhDuEIX+AsiLpYNb3Xw2Io9aozuCx/EcKxSORtkXCmNfTdlVJ7oSu VSwF8NH3J02KmuIl2MJrzWW08azqPUPvkJelCSVKB/0rtGfq7WijA7bohuj21kCYks6Q ZWfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wizzup.org header.s=mail header.b=i3pOjcr0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=wizzup.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l13si4963113otq.30.2020.02.15.09.00.53; Sat, 15 Feb 2020 09:01:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@wizzup.org header.s=mail header.b=i3pOjcr0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=wizzup.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726467AbgBORAe (ORCPT + 99 others); Sat, 15 Feb 2020 12:00:34 -0500 Received: from a80-127-99-228.adsl.xs4all.nl ([80.127.99.228]:45178 "EHLO hetgrotebos.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726209AbgBORAe (ORCPT ); Sat, 15 Feb 2020 12:00:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=wizzup.org; s=mail; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: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=xuSqKQckl8muEwKshU/FzUtts9aWAxkpxm3IlAs7oE0=; b=i3pOjcr07cSYOV1hufyJQR5jBO qSSk62inBHZ1/2kXDe1fQDwqRaFLJjuecxX/PR5NaaEraMc2KcGTiHKfYc6ORw4xPDTZv0pBSawnl mETCSN56iH0aKVUguFcI6+T3Vc+wNqGOFU+AI1K3x96M43uX7lhy5zrQ0f2sEa6wufOQnYu5mUbXg x6/gZVYOlsk/UJhlhaf9uYuwRujJGr01+IK4EAfJnpBKc8I4Azziy94WRtNY0ACljEkHOU5jox/uK CTJyfb1evVRnV95CeRflGw02/rglMf2Q+NZuqjKmu6hu4yTrxVg+EAf8Og+o9SbgvBlOW+CctTOUP 7LB2oAjw==; Received: from kgpe-d16.fritz.box ([192.168.178.22]) by hetgrotebos.org with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1j30ni-00037p-CU; Sat, 15 Feb 2020 17:00:18 +0000 From: Merlijn Wajer Cc: Merlijn Wajer , Sebastian Reichel , =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Tony Lindgren , Rob Herring , Mark Rutland , Dmitry Torokhov , "Darren Hart (VMware)" , Mattias Jacobsson <2pi@mok.nu>, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH 1/2] Input: add `SW_MACHINE_COVER` Date: Sat, 15 Feb 2020 18:02:14 +0100 Message-Id: <20200215170216.14397-2-merlijn@wizzup.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200215170216.14397-1-merlijn@wizzup.org> References: <20200215170216.14397-1-merlijn@wizzup.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This event code represents the state of a removable cover of a device. Value 0 means that the cover is open or removed, value 1 means that the cover is closed. Reviewed-by: Sebastian Reichel Signed-off-by: Merlijn Wajer --- include/linux/mod_devicetable.h | 2 +- include/uapi/linux/input-event-codes.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 448621c32e4d..4c692cb3cc1d 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -299,7 +299,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 0x0f +#define INPUT_DEVICE_ID_SW_MAX 0x10 #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 64cee116928e..68f8ad8377a1 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -807,7 +807,8 @@ #define SW_LINEIN_INSERT 0x0d /* set = inserted */ #define SW_MUTE_DEVICE 0x0e /* set = device disabled */ #define SW_PEN_INSERTED 0x0f /* set = pen inserted */ -#define SW_MAX 0x0f +#define SW_MACHINE_COVER 0x10 /* set = cover closed */ +#define SW_MAX 0x10 #define SW_CNT (SW_MAX+1) /* -- 2.23.0