HID: asus: Remove check for same LED brightness on set
PATCH 1/1 HID: asus: Remove check for same LED brightness on set
Remove the early return on LED brightness set so that any controller application, daemon, or desktop may set the same brightness at any stage.
This is required because many ASUS ROG keyboards will default to max brightness on laptop resume if the LEDs were set to off before sleep.
Signed-off-by Luke D Jones <[email protected]>
--- drivers/hid/hid-asus.c | 3 --- 1 file changed, 3 deletions(-)
drivers/hid/hid-asus.c +0 -3
@@ -486,9 +486,6 @@ static void asus_kbd_backlight_set(struct led_classdev *led_cdev, { struct asus_kbd_leds *led = container_of(led_cdev, struct asus_kbd_leds, cdev); -if (led->brightness == brightness) -return ; - led->brightness = brightness;schedule_work (&led->work); }
--
2.31.1
Quoted 7 lines · Luke D. Jones
Remove the early return on LED brightness set so that any controller application, daemon, or desktop may set the same brightness at any stage.
This is required because many ASUS ROG keyboards will default to max brightness on laptop resume if the LEDs were set to off before sleep.
Signed-off-by Luke D Jones <[email protected]>
Applied, thanks.
Signature · 2 lines
Jiri Kosina SUSE Labs