platform/x86: thinkpad_acpi: Switch to using sparse-keymap helpers
authorHans de Goede <hdegoede@redhat.com>
Wed, 24 Apr 2024 12:28:29 +0000 (14:28 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 29 Apr 2024 09:53:52 +0000 (11:53 +0200)
commit42f7b965de9dad87857723422115a1a36fd2e169
tree72060a0aebd73b3426f5129b8197a4f8e6e7e1ee
parent276d91599f828d97bf579674a24a40662cd8ab41
platform/x86: thinkpad_acpi: Switch to using sparse-keymap helpers

Switch the hotkey keymap handling over to the sparse-keymap helpers,
there should be no functional changes from this.

Note all the mappings to KEY_UNKNOWN are removed since that is the default
behavior of sparse_keymap_report_event() for unknown scancodes.

Also drop the big comment about making changes to the keymaps since
the contents of that comment are mostly obsolete.

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-20-hdegoede@redhat.com
drivers/platform/x86/thinkpad_acpi.c