Fix case where WMI 13 is presend, but backlight identification is still happening the old way

This commit is contained in:
Werner Sembach 2023-01-25 14:36:37 +01:00
parent 4324bb2042
commit 8fc1f5a345

View file

@ -274,8 +274,10 @@ int clevo_leds_init(struct platform_device *dev)
}
else {
pr_notice("CLEVO_CMD_GET_SPECS does not exist on this device or failed, trying CLEVO_CMD_GET_BIOS_FEATURES_1\n");
}
// check for devices <= Intel 7th gen (only white only, 3 zone RGB, or no backlight on these devices)
if (status || clevo_kb_backlight_type == CLEVO_KB_BACKLIGHT_TYPE_NONE) {
// check for devices <= Intel 8th gen (only white only, 3 zone RGB, or no backlight on these devices)
status = clevo_evaluate_method(CLEVO_CMD_GET_BIOS_FEATURES_1, 0, &result_fallback);
if (!status) {
pr_debug("CLEVO_CMD_GET_BIOS_FEATURES_1 result_fallback: 0x%08x\n", result_fallback);