]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: asus: do not try to initialize the backlight if the enpoint doesn't support it
authorDenis Benato <denis.benato@linux.dev>
Sat, 28 Feb 2026 19:10:10 +0000 (20:10 +0100)
committerJiri Kosina <jkosina@suse.com>
Tue, 10 Mar 2026 17:01:19 +0000 (18:01 +0100)
commitc89046d57d534348b41ca28f5c1c5443743dbe04
tree000b0ab5717becac516e4ef99b640c3d67e2fc2c
parent7253091766ded0fd81fe8d8be9b8b835495b06e8
HID: asus: do not try to initialize the backlight if the enpoint doesn't support it

Avoid possibly printing a warning about the inability to initialize the
backlight if the hid endpoint doesn't support it.

Also fix and move an incorrect check in asus_kbd_register_leds(): that
same check is now used as a precondition to call that function.

Fixes: 0919db9f3583 ("HID: asus: always fully initialize devices")
Signed-off-by: Denis Benato <denis.benato@linux.dev>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-asus.c