platform/x86: asus-wmi: Update unknown code message
PATCH 1/2 platform/x86: asus-wmi: Update unknown code message
Prepend 0x to the actual key code to specify it
is already an hex value
--- drivers/platform/x86/asus-wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/asus-wmi.c +1 -1
@@ -3114,7 +3114,7 @@ static void asus_wmi_handle_event_code(int code, struct asus_wmi *asus)if (!sparse_keymap_report_event (asus->inputdev, code, key_value, autorelease)) -pr_info ("Unknown key %x pressed\n" , code); +pr_info ("Unknown key code 0x%x\n" , code); }static void asus_wmi_notify (u32 value,void *context)
Signature · 1 line
2.35.1
PATCH 2/2 platform/x86: asus-nb-wmi: Add keymap for MyASUS key
This event is triggered by pressing Fn+F12 on
ASUS Zenbook UX425JA
Map it to KEY_PROG1 to allow userspace to
configure it
--- drivers/platform/x86/asus-nb-wmi.c | 1 + 1 file changed, 1 insertion(+)
drivers/platform/x86/asus-nb-wmi.c +1 -0
@@ -553,6 +553,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = { { KE_KEY, 0x7D, { KEY_BLUETOOTH } }, /* Bluetooth Enable */ { KE_KEY, 0x7E, { KEY_BLUETOOTH } }, /* Bluetooth Disable */ { KE_KEY, 0x82, { KEY_CAMERA } }, + { KE_KEY, 0x86, { KEY_PROG1 } }, /* MyASUS Key */ { KE_KEY, 0x88, { KEY_RFKILL } }, /* Radio Toggle Key */ { KE_KEY, 0x8A, { KEY_PROG1 } }, /* Color enhancement mode */ { KE_KEY, 0x8C, { KEY_SWITCHVIDEOMODE } }, /* SDSP DVI only */
Signature · 1 line
2.35.1
Hi,
Quoted 4 lines · Luca Stefani
Prepend 0x to the actual key code to specify it
is already an hex valueSigned-off-by Luca Stefani <[email protected]>
Thank you for your patch-series, I've applied the series to my review-hans branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans
Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while.
Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window.
Regards,
Hans
Quoted 17 lines
--- drivers/platform/x86/asus-wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/x86/asus-wmi.c +1
-1@@ -3114,7 +3114,7 @@ static void asus_wmi_handle_event_code(int code, struct asus_wmi *asus)if (!sparse_keymap_report_event (asus->inputdev, code, key_value, autorelease)) -pr_info ("Unknown key %x pressed\n" , code); +pr_info ("Unknown key code 0x%x\n" , code); }static void asus_wmi_notify (u32 value,void *context)