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 26A308468; Thu, 25 Jul 2024 14:52:47 +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=1721919167; cv=none; b=X2z/B4/XPx4dCgECUNkJDQ6C/RdwB24jwPNWe+7luClPPZNoXX+0YMHmyM9olQSyNTqpMg7c2Vo7li8dlTlFuMMOrz+xwMZ2HpXCezcTstbbxajYvs4FlJtBKLdkTA+80Jr0aY0Oy6QTokvi3JRLpdyiRShYdQAYhbFfukjQLu4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721919167; c=relaxed/simple; bh=NcH+rHdaO4wzwtbjC6fBc+eI5cwK3GOAIfGvu7PpJ5A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IBH9xJlPWMuQWS/cPmHAiAQv74zj13ibUG3mIdNaqAgwmfqpfcbptS4BaxXle47EvEXVfwvfknjrLKueTK+fYMe0YziZOtINeM68d9k3iVESKBmy3BUKlYIeVfPnn+VzYN66fJ2vyIhytVjt/MwilPkMxcLnlFVHq4TkS92Wz60= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lwRX4xjE; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="lwRX4xjE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97F92C116B1; Thu, 25 Jul 2024 14:52:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721919167; bh=NcH+rHdaO4wzwtbjC6fBc+eI5cwK3GOAIfGvu7PpJ5A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lwRX4xjEg6MoYtAmamw+aekg4VFBpgMM+ZrbGJQ44taE6THXJh8XtrLui4Vr8oPli XWO7hfDCQAzb1I1PG5notNSHAYzhdv7rd35DxZIZmqRhfw1bW6LLjMK/A0MRGfwvyu voikRemFkpDQgZQml71ibZG9hlDM5cLuKX7wm2OY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Agathe Boutmy , Armin Wolf , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Hans de Goede , Sasha Levin Subject: [PATCH 5.15 45/87] platform/x86: lg-laptop: Remove LGEX0815 hotkey handling Date: Thu, 25 Jul 2024 16:37:18 +0200 Message-ID: <20240725142740.132144530@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240725142738.422724252@linuxfoundation.org> References: <20240725142738.422724252@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ 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 88b551caeaaf4..96960f96f775c 100644 --- a/drivers/platform/x86/lg-laptop.c +++ b/drivers/platform/x86/lg-laptop.c @@ -83,7 +83,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} }; @@ -271,14 +270,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