Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp212855ybh; Mon, 20 Jul 2020 14:45:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznvNXDauHa9HuMT9f9mc3GQkcgSKtdidJ7YtcuJSMUpOoTNyUmwQKzXWzvpucsMQ4vzrVR X-Received: by 2002:a50:f385:: with SMTP id g5mr22325771edm.347.1595281505550; Mon, 20 Jul 2020 14:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595281505; cv=none; d=google.com; s=arc-20160816; b=aqQs2uXmfKySJSpYTguRI7nRFMhst8x/fZ+nwagcWKbXQqAlGxUZxIhqPjfIHBzRnz BQ85fPlZ1/AKaNzRtb6+As/8tAgGPm96icDfqqetesEjPSATCPVwqXYlXicdaZ4BHY1j txslMN6T6wKrUDy8oYnjabTHbUSrKBzmzHqg86oyq654uAeerPI+d82KHRcsaOHiKqFO v9l1Ha2d8u0UmNJUfyI90KzAodPHXL5dws+hqZoIgRqdzBmQ0f9mf8/28IAsBihNmp+a JpNHkl5oS7Hwbem44O7oFtPXfc57ZykYWXRI5cMPP8jwZxd10oALeW/DfGvzS0pa7F92 ziaQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LpaJr80M39BMvJM7xgM3M31/Ur30gWwa/6HUEUnBvmQ=; b=q1O5SaXC0K7UWEFwfwryuqsFpiVfhCLNos+HyMrvlp2wRxWTlYXD8iSXiYthQ0kCGk rc/7fD+QrEBaiMUSX97Ms7r2Oy9odONMdkavCRUpPBnWCeZMMpgI8l23kQ6IM4LZ7sI2 wOHC1vYK8cnlo3KeQOcowfFiYLrSXWt7VKJkgB2xCPOtGE8p13Az8yTlXYV7JX3iY+J1 HfyKSk5PjtQHDGKVd0YIsZBQ/203Ao+ZY4DGOefhrtJYpLAojgS6KW/a7VtkHwnbwX5G 19cgRUyeFIRUWfq3+a2xgksJrQQ0uY9PHnZ9Ttp4kIb031vplF7s5dVNybW9m0LX2Z+R 9/cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lqJk2vzl; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si10941543ejj.498.2020.07.20.14.44.42; Mon, 20 Jul 2020 14:45: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=lqJk2vzl; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728470AbgGTVj1 (ORCPT + 99 others); Mon, 20 Jul 2020 17:39:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:57980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728304AbgGTVi7 (ORCPT ); Mon, 20 Jul 2020 17:38:59 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2ACD922C7B; Mon, 20 Jul 2020 21:38:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595281139; bh=YtDnHAVbA9/a5sdIs/kcn/Sqz1wweEJKvU0Wv/lqQr8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lqJk2vzlYQKNXaMYcMbD0z8GZciNOLjY4JEuD7w+FsXS/lpeDqx8rWGWDDRRemR9f +IKsoXuCsMPx+CATVOXjKKAkY7WUPTgdB2nxECtGYiax6F0ajTMji9GETyyfqIzhwl OqzDdUoBQAOYO42akAe6YY4b3Ta0VXcDdD5AxH7w= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Merlijn Wajer , Sebastian Reichel , Tony Lindgren , Dmitry Torokhov , Sasha Levin , linux-input@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 06/19] Input: add `SW_MACHINE_COVER` Date: Mon, 20 Jul 2020 17:38:37 -0400 Message-Id: <20200720213851.407715-6-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200720213851.407715-1-sashal@kernel.org> References: <20200720213851.407715-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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