From: Corentin Chary Date: Tue, 20 Mar 2012 08:53:04 +0000 (+0100) Subject: asus-wmi: on/off bit is not set when reading the value X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c09b2237da24e9136fc8053e11244f52903e73e0;p=mv-sheeva.git asus-wmi: on/off bit is not set when reading the value Signed-off-by: Corentin Chary Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c index 72d731c21d4..2b883470a9d 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) if (retval >= 0) { if (level) - *level = retval & 0x80 ? retval & 0x7F : 0; + *level = retval & 0x7F; if (env) *env = (retval >> 8) & 0x7F; retval = 0;