diff options
author | Corentin Chary <corentin.chary@gmail.com> | 2011-07-01 11:34:34 +0200 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2011-08-05 14:45:57 -0400 |
commit | af965e973276b015d1b7d9ee78ed8d8df9d6bc98 (patch) | |
tree | 003fc5dcee22107752d45dad370c76ff9c0b3faf /drivers | |
parent | 8fe8c25ef92ffc773a49c4b0dab2938a6fd64489 (diff) | |
download | linux-stable-af965e973276b015d1b7d9ee78ed8d8df9d6bc98.tar.gz linux-stable-af965e973276b015d1b7d9ee78ed8d8df9d6bc98.tar.bz2 linux-stable-af965e973276b015d1b7d9ee78ed8d8df9d6bc98.zip |
asus-wmi: fix keyboard backlight detection
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/platform/x86/asus-wmi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c index 41a96f2b136e..4b0384e140f8 100644 --- a/drivers/platform/x86/asus-wmi.c +++ b/drivers/platform/x86/asus-wmi.c @@ -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) |