Attempt to fix issue with resetting LED brightness
This commit is contained in:
parent
6a802487fd
commit
a676b6f7fd
9
kb_led.c
9
kb_led.c
|
|
@ -200,16 +200,13 @@ static struct device_attribute kb_led_color_extra_dev_attr = {
|
|||
static void kb_led_resume(void) {
|
||||
enum kb_led_region region;
|
||||
|
||||
// Enable keyboard backlight
|
||||
s76_wmbb(SET_KB_LED, 0xE007F001, NULL);
|
||||
|
||||
// Reset current brightness
|
||||
kb_led_set(&kb_led, kb_led_brightness);
|
||||
|
||||
// Reset current color
|
||||
for (region = 0; region < sizeof(kb_led_regions)/sizeof(union kb_led_color); region++) {
|
||||
kb_led_color_set(region, kb_led_regions[region]);
|
||||
}
|
||||
|
||||
// Reset current brightness
|
||||
kb_led_set(&kb_led, kb_led_brightness);
|
||||
}
|
||||
|
||||
static int __init kb_led_init(struct device *dev) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue