Add debug output

This commit is contained in:
Werner Sembach 2022-07-22 15:40:44 +02:00
parent 45a240f5f2
commit e77d9748ee

View file

@ -815,9 +815,20 @@ int clevo_keyboard_init(void)
static int clevo_keyboard_probe(struct platform_device *dev) static int clevo_keyboard_probe(struct platform_device *dev)
{ {
u32 status;
union acpi_object *result;
clevo_keyboard_init_device_interface(dev); clevo_keyboard_init_device_interface(dev);
clevo_keyboard_init(); clevo_keyboard_init();
status = clevo_evaluate_method2(0x0D, 0, &result);
if (!status) {
if (result->type == ACPI_TYPE_BUFFER) {
printk(KERN_EMERG "Keyboard Backlight Type: 0x%02x", result->buffer.pointer[0x0f]);
}
ACPI_FREE(result);
}
return 0; return 0;
} }