Skip to content

Commit

Permalink
asus-wmi: fix keyboard backlight detection
Browse files Browse the repository at this point in the history
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
  • Loading branch information
Corentin Chary authored and Matthew Garrett committed Aug 5, 2011
1 parent 8fe8c25 commit af965e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/platform/x86/asus-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,9 @@ static int kbd_led_read(struct asus_wmi *asus, int *level, int *env)
retval = asus_wmi_get_devstate_bits(asus, ASUS_WMI_DEVID_KBD_BACKLIGHT,
0xFFFF);

/* Unknown status is considered as off */
if (retval == 0x8000)
retval = -ENODEV;
retval = 0;

if (retval >= 0) {
if (level)
Expand Down

0 comments on commit af965e9

Please sign in to comment.