Move special code handling to where it is actually defined

This commit is contained in:
Christoffer Sandberg 2020-06-18 10:42:10 +02:00
parent 13d9b8bbf8
commit 2d3f22a579
No known key found for this signature in database
GPG key ID: BF563F71B6C7A96D

View file

@ -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)) {
TUXEDO_DEBUG("[Ev %d] Unknown key - %d (%0#6x)\n", guid_nr, code, code);
}
}
// Special key combination when mode change key is pressed
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_sync(current_driver->input_device);
}
}
kfree(obj);
}