mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 11:43:59 +01:00
Extend uw event catching (debug)
This commit is contained in:
parent
4a272bb715
commit
edb5c08ad3
|
@ -255,7 +255,8 @@ static void uniwill_wmi_handle_event(u32 value, void *context, u32 guid_nr)
|
||||||
}
|
}
|
||||||
|
|
||||||
obj = (union acpi_object *) response.pointer;
|
obj = (union acpi_object *) response.pointer;
|
||||||
if (obj && obj->type == ACPI_TYPE_INTEGER) {
|
if (obj) {
|
||||||
|
if (obj->type == ACPI_TYPE_INTEGER) {
|
||||||
code = obj->integer.value;
|
code = obj->integer.value;
|
||||||
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);
|
||||||
|
@ -296,6 +297,9 @@ static void uniwill_wmi_handle_event(u32 value, void *context, u32 guid_nr)
|
||||||
uniwill_write_kbd_bl_state();
|
uniwill_write_kbd_bl_state();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
TUXEDO_DEBUG("[Ev %d] Unknown event type - %d (%0#6x)\n", guid_nr, obj->type, obj->type);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
kfree(obj);
|
kfree(obj);
|
||||||
|
|
Loading…
Reference in a new issue