mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
More debug output
This commit is contained in:
parent
8e2d526a8a
commit
55b6b5ce94
|
@ -262,7 +262,7 @@ int clevo_leds_init(struct platform_device *dev)
|
||||||
status = clevo_evaluate_method2(CLEVO_CMD_GET_SPECS, 0, &result);
|
status = clevo_evaluate_method2(CLEVO_CMD_GET_SPECS, 0, &result);
|
||||||
if (!status) {
|
if (!status) {
|
||||||
if (result->type == ACPI_TYPE_BUFFER) {
|
if (result->type == ACPI_TYPE_BUFFER) {
|
||||||
pr_debug("CLEVO_CMD_GET_SPECS successful\n");
|
pr_debug("CLEVO_CMD_GET_SPECS result->buffer.pointer[0x0f]: 0x%02x\n", result->buffer.pointer[0x0f]);
|
||||||
clevo_kb_backlight_type = result->buffer.pointer[0x0f];
|
clevo_kb_backlight_type = result->buffer.pointer[0x0f];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -278,6 +278,7 @@ int clevo_leds_init(struct platform_device *dev)
|
||||||
// check for devices <= Intel 7th gen (only white only, 3 zone RGB, or no backlight on these devices)
|
// check for devices <= Intel 7th gen (only white only, 3 zone RGB, or no backlight on these devices)
|
||||||
status = clevo_evaluate_method(CLEVO_CMD_GET_BIOS_FEATURES, 0, &result_fallback);
|
status = clevo_evaluate_method(CLEVO_CMD_GET_BIOS_FEATURES, 0, &result_fallback);
|
||||||
if (!status) {
|
if (!status) {
|
||||||
|
pr_debug("CLEVO_CMD_GET_BIOS_FEATURES result_fallback: 0x%08x\n", result_fallback);
|
||||||
if (result_fallback & CLEVO_CMD_GET_BIOS_FEATURES_SUB_3_ZONE_RGB_KB) {
|
if (result_fallback & CLEVO_CMD_GET_BIOS_FEATURES_SUB_3_ZONE_RGB_KB) {
|
||||||
clevo_kb_backlight_type = CLEVO_KB_BACKLIGHT_TYPE_3_ZONE_RGB;
|
clevo_kb_backlight_type = CLEVO_KB_BACKLIGHT_TYPE_3_ZONE_RGB;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue