Commit c89046d
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: 0919db9 ("HID: asus: always fully initialize devices")
Signed-off-by: Denis Benato <denis.benato@linux.dev>
Signed-off-by: Jiri Kosina <jkosina@suse.com>1 parent 7253091 commit c89046d
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | 741 | | |
746 | 742 | | |
747 | 743 | | |
| |||
1307 | 1303 | | |
1308 | 1304 | | |
1309 | 1305 | | |
| 1306 | + | |
1310 | 1307 | | |
1311 | | - | |
| 1308 | + | |
| 1309 | + | |
1312 | 1310 | | |
1313 | 1311 | | |
1314 | 1312 | | |
| |||
0 commit comments