mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Merge branch 'generalize_keyboard_backlight_brightness_clevo_working' into generalize_keyboard_backlight_brightness
This commit is contained in:
commit
0aff209139
|
@ -174,7 +174,7 @@ static void set_next_color_whole_kb(void)
|
|||
|
||||
new_color_id = kbd_led_state.whole_kbd_color + 1;
|
||||
if (new_color_id >= color_list.size) {
|
||||
new_color_id = 0;
|
||||
new_color_id = 1; // Skip black
|
||||
}
|
||||
new_color_code = color_list.colors[new_color_id].code;
|
||||
|
||||
|
|
|
@ -131,9 +131,9 @@ static void clevo_leds_set_brightness_mc(struct led_classdev *led_cdev, enum led
|
|||
pr_debug("clevo_leds_set_brightness_mc(): clevo_evaluate_set_brightness() failed\n");
|
||||
return;
|
||||
}
|
||||
clevo_mcled_cdevs[0].brightness = brightness;
|
||||
clevo_mcled_cdevs[1].brightness = brightness;
|
||||
clevo_mcled_cdevs[2].brightness = brightness;
|
||||
clevo_mcled_cdevs[0].led_cdev.brightness = brightness;
|
||||
clevo_mcled_cdevs[1].led_cdev.brightness = brightness;
|
||||
clevo_mcled_cdevs[2].led_cdev.brightness = brightness;
|
||||
|
||||
zone = mcled_cdev->subled_info[0].channel;
|
||||
|
||||
|
|
Loading…
Reference in a new issue