mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Move special code handling to where it is actually defined
This commit is contained in:
parent
13d9b8bbf8
commit
2d3f22a579
|
@ -115,7 +115,6 @@ static void uniwill_wmi_handle_event(u32 value, void *context, u32 guid_nr)
|
||||||
if (!sparse_keymap_report_known_event(current_driver->input_device, code, 1, true)) {
|
if (!sparse_keymap_report_known_event(current_driver->input_device, code, 1, true)) {
|
||||||
TUXEDO_DEBUG("[Ev %d] Unknown key - %d (%0#6x)\n", guid_nr, code, code);
|
TUXEDO_DEBUG("[Ev %d] Unknown key - %d (%0#6x)\n", guid_nr, code, code);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Special key combination when mode change key is pressed
|
// Special key combination when mode change key is pressed
|
||||||
if (code == 0xb0) {
|
if (code == 0xb0) {
|
||||||
|
@ -128,6 +127,7 @@ static void uniwill_wmi_handle_event(u32 value, void *context, u32 guid_nr)
|
||||||
input_report_key(current_driver->input_device, KEY_LEFTMETA, 0);
|
input_report_key(current_driver->input_device, KEY_LEFTMETA, 0);
|
||||||
input_sync(current_driver->input_device);
|
input_sync(current_driver->input_device);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
kfree(obj);
|
kfree(obj);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue