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 0D66D1CB323; Tue, 9 Jul 2024 16:23:16 +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=1720542196; cv=none; b=CA4maSWuQL2YyFFFgbSCWJ8o6au8OR1rrUrtoHr43nQXxG1Il2c4iv8Y8/cNHmgR9ikWZbobFPqYXUbGpAY0auoIEirhshEq5juP7iUXEwsLDIMywSyXnoDkwmWS2WlKwUBMv78sC1pmGVT9Hg2ywIxXSsRlztYywo/HsQHoAp8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720542196; c=relaxed/simple; bh=f2GJKDuuqKwl4LPVrCuf7fI2+utMtXT5Oaac3aTQvG8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WWnW0YSBBG7yVgYp9yrS3m0PGpIDG/0b+S5HuUDpHH+S2tYRETIfu23dwLqcrlmHWu2T/JL797EFO4rVxRenmJ1KkBqFB1466GNDHAAhW3LGZeypCyvzL0DBYQ7bFXtgMpYK1rIoD4rg6HN+MeLXITZOzofF6Ct2v2c8/bPIrLs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kwPSgmYF; 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="kwPSgmYF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6036C32782; Tue, 9 Jul 2024 16:23:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720542195; bh=f2GJKDuuqKwl4LPVrCuf7fI2+utMtXT5Oaac3aTQvG8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kwPSgmYFE/MhOm8ovFr/tdgIFq2wIIRFHJ7qJW+YeDpITrHvq+4bJol+5rQmbfyEA /z8cX0nwEhbMAhveYPkaF8vSgTb7WHpmraucZY4+oT1NDQ5XH34SMLJawwr9goOhca 9kpfHLRZ4RQfbBORsl3mesICMC09p2APIdYgDGHrmZxz1aF9VRNZkz8aP3xJ5XYGnl EWRzzFHS/OREJypQcRTNOAQxB+NakgPvyM5IbuCzpQ2qmymkd2EiIobOjZjipBWFAR 2OS+k4z45GpilnqFH8KIjOM8zl+P5erPGxCd4U3J19nPPC1Ta1YYYo51RLk0lcWsxa Qa3X3LF4tOUSw== 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 6.6 23/33] platform/x86: lg-laptop: Remove LGEX0815 hotkey handling Date: Tue, 9 Jul 2024 12:21:49 -0400 Message-ID: <20240709162224.31148-23-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240709162224.31148-1-sashal@kernel.org> References: <20240709162224.31148-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 6.6.38 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 ad3c39e9e9f58..545872adbc52a 100644 --- a/drivers/platform/x86/lg-laptop.c +++ b/drivers/platform/x86/lg-laptop.c @@ -84,7 +84,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} }; @@ -272,14 +271,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