Skip to content

Commit 413c204

Browse files
Wer-Wolfjwrdegoede
authored andcommitted
platform/x86: lg-laptop: Remove LGEX0815 hotkey handling
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 <[email protected]> Signed-off-by: Armin Wolf <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent 151e78a commit 413c204

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/platform/x86/lg-laptop.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ static const struct key_entry wmi_keymap[] = {
8484
* this key both sends an event and
8585
* changes backlight level.
8686
*/
87-
{KE_KEY, 0x80, {KEY_RFKILL} },
8887
{KE_END, 0}
8988
};
9089

@@ -272,14 +271,7 @@ static void wmi_input_setup(void)
272271

273272
static void acpi_notify(struct acpi_device *device, u32 event)
274273
{
275-
struct key_entry *key;
276-
277274
acpi_handle_debug(device->handle, "notify: %d\n", event);
278-
if (inited & INIT_SPARSE_KEYMAP) {
279-
key = sparse_keymap_entry_from_scancode(wmi_input_dev, 0x80);
280-
if (key && key->type == KE_KEY)
281-
sparse_keymap_report_entry(wmi_input_dev, key, 1, true);
282-
}
283275
}
284276

285277
static ssize_t fan_mode_store(struct device *dev,

0 commit comments

Comments
 (0)