summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-asus.c
diff options
context:
space:
mode:
authorLuke D. Jones <luke@ljones.dev>2021-07-05 10:26:59 +1200
committerJiri Kosina <jkosina@suse.cz>2021-07-15 21:01:32 +0200
commit3fdcf7cdfc229346d028242e73562704ad644dd0 (patch)
tree2f44d51bc8e790e03744e9b1cebffc3bc2459fba /drivers/hid/hid-asus.c
parente48bf29cf9d6d60d810e2af71e54b71a324094e0 (diff)
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>
Diffstat (limited to 'drivers/hid/hid-asus.c')
-rw-r--r--drivers/hid/hid-asus.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c
index fca8fc78a78a..fb807c8e989b 100644
--- a/drivers/hid/hid-asus.c
+++ b/drivers/hid/hid-asus.c
@@ -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,
cdev);
- if (led->brightness == brightness)
- return;
-
led->brightness = brightness;
schedule_work(&led->work);
}