projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fe8c25
)
asus-wmi: fix keyboard backlight detection
author
Corentin Chary
<corentin.chary@gmail.com>
Fri, 1 Jul 2011 09:34:34 +0000
(11:34 +0200)
committer
Matthew Garrett
<mjg@redhat.com>
Fri, 5 Aug 2011 18:45:57 +0000
(14:45 -0400)
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/asus-wmi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/platform/x86/asus-wmi.c
b/drivers/platform/x86/asus-wmi.c
index 41a96f2b136e0efc28fd81acdda6a2cc33914580..4b0384e140f809fe8d6f317a4645e899fb45e767 100644
(file)
--- 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)