提交 3fdcf7cd 编写于 作者: L Luke D. Jones 提交者: Jiri Kosina

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: NLuke D Jones <luke@ljones.dev>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 e48bf29c
...@@ -485,9 +485,6 @@ static void asus_kbd_backlight_set(struct led_classdev *led_cdev, ...@@ -485,9 +485,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, struct asus_kbd_leds *led = container_of(led_cdev, struct asus_kbd_leds,
cdev); cdev);
if (led->brightness == brightness)
return;
led->brightness = brightness; led->brightness = brightness;
schedule_work(&led->work); schedule_work(&led->work);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册