]> www.infradead.org Git - users/dwmw2/linux.git/commit
platform/x86: thinkpad_acpi: Move special original hotkeys handling out of switch...
authorHans de Goede <hdegoede@redhat.com>
Wed, 24 Apr 2024 12:28:19 +0000 (14:28 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 29 Apr 2024 09:44:12 +0000 (11:44 +0200)
commitba69660627eadb0983483fff376dceb55a773562
tree64911dcf3f00cda79a1dcedac3c137b5f4d04ac2
parent0a1f7f576082cad93d2c663fc0a5f0108aad5105
platform/x86: thinkpad_acpi: Move special original hotkeys handling out of switch-case

Move the special handling (send_acpi_ev = false, hotkey_source_mask check)
for original hotkeys out of the switch-case in hotkey_notify_hotkey().
This is a preparation patch for further refactoring.

Tested-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240424122834.19801-10-hdegoede@redhat.com
drivers/platform/x86/thinkpad_acpi.c