]> git.baikalelectronics.ru Git - kernel.git/commit
HID: asus: Remove check for same LED brightness on set
authorLuke D. Jones <luke@ljones.dev>
Sun, 4 Jul 2021 22:26:59 +0000 (10:26 +1200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:43:31 +0000 (16:43 +0100)
commit08cca3cd9480a573c7ac0f7898a58c517a90170f
treecb2bd25e94add13936d92d9cf6aa1d05d012a257
parentfe54b03ea9aefae0dc399db5796546dc6c4ae049
HID: asus: Remove check for same LED brightness on set

commit 094ca9075e8b8af73e8dcf81ca7edb304cc86a83 upstream.

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>
Signed-off-by: Stefan Ghinea <stefan.ghinea@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-asus.c