Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4882221pjb; Mon, 27 Jul 2020 07:31:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3KmXi5YGGnRP/yII2UIn4QRNvQXHThsnG/46kw654xzARuebJrCa1Ung+O1GQ+PGq8HdT X-Received: by 2002:a17:906:ce43:: with SMTP id se3mr6431907ejb.403.1595860265034; Mon, 27 Jul 2020 07:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595860265; cv=none; d=google.com; s=arc-20160816; b=gaB85LwlcwpInK52lDPExEsVj/uGT9zUqJLkFLnFpdftnlQEcpexNBH8rfuvcUfnI/ gl+uVTK5tU6kgEDk6BxiIr1b1zebn+tr2/p6Z+daCN3CAzmo6NdveSXYTIOCeRDUJlTF dyIqcmvjU4NuIHQCwrVLZGobTs42mrLpggAXVgMMoBXwVIRypAE1/X90YZbTNAEBc7oq FHmK6F6o+jNnvJHbrOOQr9p+egjxHO0AzhSqUNxakySTaD1J0rdBIt0lsq7gpx1glbD2 vp8WyAmkmhG6vwa7HCyiM9N/p+PRSaDIAryVUS4hOKXDDYckT/WvsPjh9m9f4T4gAhjL AQ1A== 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=rzFGH2bYazgog5lllpFkb7r4/Q97ofo4VOZJ8xWZ7nM=; b=uBdGW/FIyzU9ChYc5mjjB5nDQ4Tp7NEMgkcdNXfPXJ0rpyz0pgLeD0Uj/mM7V5T2/B CssNL/Si3VvVEjjNQvhs8OWt0JyuKply5UiV7GES+fJRTnM1CTrPbjn4mOyHv2LWKQEX tFGAdP4coh8saxHx5MhZdDcxg1TxgEAewHFMUn0OYtx7ZZ0/Wf50dIHmTVSZuth6jYxT /F2xKeQZLq+4A2OpOQ0h0O0pmWOCoLXMzZ80NFiQ6LD8Cv05+fnrqBjRfFGgFKMTK5Cj +uQbh1DKZe7DjFQDUOqhzoAyWR1jBjXYRd7+rAPwwKDiABvRRow5IIwjlxNRnTo4mUBT IbfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CqvrlblX; 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 jz6si5753780ejb.508.2020.07.27.07.30.42; Mon, 27 Jul 2020 07:31:05 -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=CqvrlblX; 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 S1731958AbgG0O32 (ORCPT + 99 others); Mon, 27 Jul 2020 10:29:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:52566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731491AbgG0OXV (ORCPT ); Mon, 27 Jul 2020 10:23:21 -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 29D8C2070A; Mon, 27 Jul 2020 14:23:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859800; bh=nE+iPYVH7YUcPYLNkoCTd+IU2wP0RX1TQuOswIQft7U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CqvrlblXWBXYLRGG3Vhi5S1lnkm3Cfu0WJge2D8t5lTNgzUPX0fCS0QYU/WcEPNV3 37cqNQz/NIdN5I0DL5iQ8OUE9VUyPjxQPno7r7Pln1QdkVl+OvpU9ZjdcZPeHcCJEx qqelBi3Knr8mgwau/pvRZ1w75XNNeD4wlVsuY7nM= 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 5.7 110/179] Input: add `SW_MACHINE_COVER` Date: Mon, 27 Jul 2020 16:04:45 +0200 Message-Id: <20200727134938.013806903@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134932.659499757@linuxfoundation.org> References: <20200727134932.659499757@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 0754b8d71262b..8a84f11bf1246 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -318,7 +318,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 b6a835d378263..0c2e27d28e0ac 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -888,7 +888,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