projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb649a8
)
asus-wmi: on/off bit is not set when reading the value
author
Corentin Chary
<corentin.chary@gmail.com>
Tue, 20 Mar 2012 08:53:04 +0000
(09:53 +0100)
committer
Matthew Garrett
<mjg@redhat.com>
Mon, 26 Mar 2012 19:05:35 +0000
(15:05 -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
|
history
diff --git
a/drivers/platform/x86/asus-wmi.c
b/drivers/platform/x86/asus-wmi.c
index 72d731c21d45c19ddb1502899214f1408cdb7184..2b883470a9d022feaae5dabb893ca1c54ec98d73 100644
(file)
--- a/
drivers/platform/x86/asus-wmi.c
+++ b/
drivers/platform/x86/asus-wmi.c
@@
-411,7
+411,7
@@
static int kbd_led_read(struct asus_wmi *asus, int *level, int *env)
if (retval >= 0) {
if (level)
- *level = retval & 0x
80 ? retval & 0x7F : 0
;
+ *level = retval & 0x
7F
;
if (env)
*env = (retval >> 8) & 0x7F;
retval = 0;