aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorCorentin Chary <corentin.chary@gmail.com>2012-03-20 04:53:04 -0400
committerMatthew Garrett <mjg@redhat.com>2012-03-26 15:05:35 -0400
commitc09b2237da24e9136fc8053e11244f52903e73e0 (patch)
treec7baa7ad15212edaf496ecd4155d83d15e6bd509 /drivers/platform
parenteb649a818abab4b0a8bb8b00d174ad9acf0a8a5a (diff)
asus-wmi: on/off bit is not set when reading the value
Signed-off-by: Corentin Chary <corentin.chary@gmail.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/asus-wmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index 72d731c21d45..2b883470a9d0 100644
--- 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)
411 411
412 if (retval >= 0) { 412 if (retval >= 0) {
413 if (level) 413 if (level)
414 *level = retval & 0x80 ? retval & 0x7F : 0; 414 *level = retval & 0x7F;
415 if (env) 415 if (env)
416 *env = (retval >> 8) & 0x7F; 416 *env = (retval >> 8) & 0x7F;
417 retval = 0; 417 retval = 0;