Skip to content

Commit 3fdcf7c

Browse files
flukejonesJiri Kosina
authored andcommitted
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 <luke@ljones.dev> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent e48bf29 commit 3fdcf7c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/hid/hid-asus.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,6 @@ static void asus_kbd_backlight_set(struct led_classdev *led_cdev,
485485
{
486486
struct asus_kbd_leds *led = container_of(led_cdev, struct asus_kbd_leds,
487487
cdev);
488-
if (led->brightness == brightness)
489-
return;
490-
491488
led->brightness = brightness;
492489
schedule_work(&led->work);
493490
}

0 commit comments

Comments
 (0)