Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4867819pjb; Mon, 27 Jul 2020 07:12:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRk5nlrW5a6YgVuneamS9Z9YeoOWoBcgJvxfngpJXjcmcefkFuSyUGHWyXMNDSz/dWz5Gc X-Received: by 2002:a17:906:5346:: with SMTP id j6mr12633732ejo.311.1595859153715; Mon, 27 Jul 2020 07:12:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595859153; cv=none; d=google.com; s=arc-20160816; b=p1H8qJ00d2GX/NhLkzsZP8C2sxDNQCnQEbtCO2Vg00HWqjHaIkc31q0Z1vx/SOBiHH PoYho+Xf7bMv8xcxC2Wq0kbbuLSQ3lWaARApGClfPvLvf3oepT5i56RKGpECwtZZDsYr pgP3d/gzAT6zxuJunGJU0ELqw5IkHcIdhl6roMw9549/FvMgyjY/HWsprWOXMcz78wke oFCdyBHGopawUuUgwjhsNJUM1BlgwH6tpq01Rck6UOZ+6zQ1jee+1xy5uBM2wLM0YzNQ cyj3U/aCw1gTLMm3yKx6/Dum8rX4EJRhnRFmhD8pKwgMuDHL+SGkbOXmKZIiJLHgEm1a tvXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LpaJr80M39BMvJM7xgM3M31/Ur30gWwa/6HUEUnBvmQ=; b=vhCMtr6fVw3HQeFZU/5THkFcHGBmLea5VNpmf0EtRvztu8vdsHK02Qj5YkVfNol6X+ U9N3gWY+w7d5ImdmXdqT9ldf5C6uapCjWfFxR6mg0dLAU9Vuzt5JBuK5UW+U7Uycq1K7 4t45A/Ld0JYoM0CflkESeFiR2GLctqIVEXg+8qkzIHJiffSu3JwniSdedqZ5fQn3V6Ir zjNkmyAgS3heS+f6JpQz2Qr8D1ZjjAykbUbSvY8DZp/GBL6M5gz/6rupWoXkstIszSke Stkk8MGr3Hm9T1WYpo+Sx26SJdypId909goOzZE+qanuRAB+hcW1W6RUyt4Fo+QIxHU+ SMMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iZp0zrg0; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id be1si2767083edb.53.2020.07.27.07.12.10; Mon, 27 Jul 2020 07:12:33 -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=@kernel.org header.s=default header.b=iZp0zrg0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729926AbgG0OKw (ORCPT + 99 others); Mon, 27 Jul 2020 10:10:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:34038 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729921AbgG0OKv (ORCPT ); Mon, 27 Jul 2020 10:10:51 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 53A2A2173E; Mon, 27 Jul 2020 14:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859050; bh=YtDnHAVbA9/a5sdIs/kcn/Sqz1wweEJKvU0Wv/lqQr8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iZp0zrg0KKNwdiVe9wwWeIiopG5NvovxWnPOj1PQ4amf9Tsv0Voh1LVGJVy82nwBI 9jmdHMg1UfrVKc+P9V5Eql9x/HpPxvygyNkGpq+JgBTLgJcTf0P7kEqLbD2BpjK5WY /TN7lUgemyrnqD7ZfNQr+UspI2TTPdUv3nzxCT/0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sebastian Reichel , Tony Lindgren , Merlijn Wajer , Dmitry Torokhov , Sasha Levin Subject: [PATCH 4.19 48/86] Input: add `SW_MACHINE_COVER` Date: Mon, 27 Jul 2020 16:04:22 +0200 Message-Id: <20200727134916.823991118@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134914.312934924@linuxfoundation.org> References: <20200727134914.312934924@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Merlijn Wajer [ Upstream commit c463bb2a8f8d7d97aa414bf7714fc77e9d3b10df ] 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 Acked-by: Tony Lindgren Signed-off-by: Merlijn Wajer Link: https://lore.kernel.org/r/20200612125402.18393-2-merlijn@wizzup.org Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- 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 84e4e20352d9f..610cdf8082f2e 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 61a5799b440b9..c3e84f7c8261a 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -795,7 +795,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.25.1