From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D5AA1AB517; Tue, 9 Jul 2024 16:26:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720542394; cv=none; b=NQJAedHPCvAI2kU5DUgBclGnBwjTatcCGejRQxw0zdLiz4AwQflFrRkfSHCKulKKpIXMH2TsxiD/leSPp64LvgttC9WkTjW7LJHHnZGxvqhwM7bz5KhYKIL0yiW/0Y7KwJfutF+TpytMTYkYKRS0s9YF1guowd0lKDjx5dpgGUs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720542394; c=relaxed/simple; bh=PTV9Lc2R7tiFy7sOAgAMdqc/1xHCFPnA+zpYcMDhg5U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=hPtTYvmvC71f4dZvjYte8X8D3mwcPgVgZQDVtScbLltEPLYVz2G/ZO4cYi02ts2L0BCFLjJqe5oEiffosmgwheSmXk0Mcl147YtmpZ1vQqNg7FUT18FMWWTloNgLZGpdKJDdgDo0Uw2ENwFgzzh9Z2+uy2Cuk5DaJOoKMy/bBKw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QNGW8Glb; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QNGW8Glb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 174DCC32782; Tue, 9 Jul 2024 16:26:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720542394; bh=PTV9Lc2R7tiFy7sOAgAMdqc/1xHCFPnA+zpYcMDhg5U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QNGW8Glb4mEeGHCWTTGsYDp6zUq/y15n+id/J8tRqrDa4Eow3XcYc7iHrafl2DQa9 w6wZrH4QrmJ7xS8noBPeixr14sPQlqxPckIdh4sBbIq7KaFpg/AXSl2lr7P/sxP8x/ zna1ZQcseNUwV7J2pHMeDaGXrKPEgqhPt8WKfU7u5zCdJYNHMpKEQojSJmv/LVeI3P Ek43z0jkpF+h6cNayAl3p+afjvzQI97Zc6doAdPWpqylIt8I6Uy3kpkCVrwFU5Rfqs kOzRxsRMpiJDB2mRolTmI1gBqMwrQXm3RefjuxOB6bsqkwgDJRuAPe8vAGk0uY4RMX sTrBZpvWlDQKQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Armin Wolf , Agathe Boutmy , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Hans de Goede , Sasha Levin , matan@svgalib.org, platform-driver-x86@vger.kernel.org Subject: [PATCH AUTOSEL 5.10 09/14] platform/x86: lg-laptop: Remove LGEX0815 hotkey handling Date: Tue, 9 Jul 2024 12:25:53 -0400 Message-ID: <20240709162612.32988-9-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240709162612.32988-1-sashal@kernel.org> References: <20240709162612.32988-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 5.10.221 Content-Transfer-Encoding: 8bit From: Armin Wolf [ Upstream commit 413c204595ca98a4f33414a948c18d7314087342 ] The rfkill hotkey handling is already provided by the wireless-hotkey driver. Remove the now unnecessary rfkill hotkey handling to avoid duplicating functionality. The ACPI notify handler still prints debugging information when receiving ACPI notifications to aid in reverse-engineering. Tested-by: Agathe Boutmy Signed-off-by: Armin Wolf Reviewed-by: Ilpo Järvinen Link: https://lore.kernel.org/r/20240606233540.9774-3-W_Armin@gmx.de Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede Signed-off-by: Sasha Levin --- drivers/platform/x86/lg-laptop.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/platform/x86/lg-laptop.c b/drivers/platform/x86/lg-laptop.c index dd900a76d8de5..6b48e545775c0 100644 --- a/drivers/platform/x86/lg-laptop.c +++ b/drivers/platform/x86/lg-laptop.c @@ -77,7 +77,6 @@ static const struct key_entry wmi_keymap[] = { * this key both sends an event and * changes backlight level. */ - {KE_KEY, 0x80, {KEY_RFKILL} }, {KE_END, 0} }; @@ -259,14 +258,7 @@ static void wmi_input_setup(void) static void acpi_notify(struct acpi_device *device, u32 event) { - struct key_entry *key; - acpi_handle_debug(device->handle, "notify: %d\n", event); - if (inited & INIT_SPARSE_KEYMAP) { - key = sparse_keymap_entry_from_scancode(wmi_input_dev, 0x80); - if (key && key->type == KE_KEY) - sparse_keymap_report_entry(wmi_input_dev, key, 1, true); - } } static ssize_t fan_mode_store(struct device *dev, -- 2.43.0