platform/x86: thinkpad_acpi: Use tpacpi_input_send_key() in adaptive kbd code
authorHans de Goede <hdegoede@redhat.com>
Wed, 24 Apr 2024 12:28:15 +0000 (14:28 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 29 Apr 2024 09:44:12 +0000 (11:44 +0200)
commitd761684afda3a784b9e5e88281d4f52cc0cffa08
treee2de07b95d2eba255f5e16d1e1b32095cc9e37e8
parent32c284b7bc4357c755edf5d09ec932f40ebf9928
platform/x86: thinkpad_acpi: Use tpacpi_input_send_key() in adaptive kbd code

Use tpacpi_input_send_key() in adaptive_keyboard_hotkey_notify_hotkey()
instead of re-implementing it there.

Note this change will also result in a behavioral change, key presses on
the adaptive keyboard will now also send a EV_MSC event with the scancode,
just like all other hotkey presses already do. This is not a bug but
a feature.

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
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>
Link: https://lore.kernel.org/r/20240424122834.19801-6-hdegoede@redhat.com
drivers/platform/x86/thinkpad_acpi.c