platform/x86: thinkpad_acpi: Add support for new phone link hotkey
authorIllia Ostapyshyn <illia@yshyn.com>
Thu, 14 Nov 2024 17:39:30 +0000 (18:39 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 15 Jan 2025 14:26:43 +0000 (16:26 +0200)
commit7ba618e893a4580b04fb883aaed3f00539c3c361
tree9eacbfa9ea4d050a658a35aaa1cd9197b84379a4
parent1bebc7869c99d466f819dd2cffaef0edf7d7a035
platform/x86: thinkpad_acpi: Add support for new phone link hotkey

The F11 key on the new Lenovo Thinkpad T14 Gen 5, T16 Gen 3, and P14s
Gen 5 laptops includes a symbol showing a smartphone and a laptop
chained together.  According to the user manual, it starts the Microsoft
Phone Link software used to connect to Android/iOS devices and relay
messages/calls or sync data.

These laptops send the 0x1320 hkey event when the key is pressed.  Map
this event to the new KEY_LINK_PHONE keycode.

Signed-off-by: Illia Ostapyshyn <illia@yshyn.com>
Link: https://lore.kernel.org/r/20241114173930.44983-3-illia@yshyn.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c