public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] platform/x86: huawei-wmi: add keys for HONOR models
@ 2025-10-14 15:19 ston
  2025-10-15  8:30 ` Ilpo Järvinen
  0 siblings, 1 reply; 7+ messages in thread
From: ston @ 2025-10-14 15:19 UTC (permalink / raw)
  To: Hans de Goede, Ilpo Järvinen; +Cc: platform-driver-x86, linux-kernel

HONOR MagicBook X16/X14 models-
produced in 2025 cannot use the print key properly.
  (input input25: Unknown key pressed, code: 0x028b)

This patch fixes this function.

Signed-off-by: ston <ston.jia@outlook.com>
---
 drivers/platform/x86/huawei-wmi.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/platform/x86/huawei-wmi.c b/drivers/platform/x86/huawei-wmi.c
index c3772df34..d3b7b673d 100644
--- a/drivers/platform/x86/huawei-wmi.c
+++ b/drivers/platform/x86/huawei-wmi.c
@@ -81,6 +81,9 @@ static const struct key_entry huawei_wmi_keymap[] = {
        { KE_KEY,    0x289, { KEY_WLAN } },
        // Huawei |M| key
        { KE_KEY,    0x28a, { KEY_CONFIG } },
+       // HONOR keys
+       { KE_KEY,    0x28b, { KEY_NOTIFICATION_CENTER } },
+       { KE_KEY,    0x28e, { KEY_PRINT } },
        // Keyboard backlit
        { KE_IGNORE, 0x293, { KEY_KBDILLUMTOGGLE } },
        { KE_IGNORE, 0x294, { KEY_KBDILLUMUP } },
-- 
2.51.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-11-05 12:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-14 15:19 [PATCH] platform/x86: huawei-wmi: add keys for HONOR models ston
2025-10-15  8:30 ` Ilpo Järvinen
2025-10-15 13:27   ` [PATCH v2] " Jia Ston
2025-10-15 13:47     ` [PATCH v3] " Jia Ston
2025-10-16 10:23   ` [PATCH v4] " Jia Ston
2025-10-29  5:18     ` [Resend PATCH " Jia Ston
2025-11-05 12:23       ` Ilpo Järvinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox