From: Corentin Chary Date: Fri, 1 Jul 2011 09:34:34 +0000 (+0200) Subject: asus-wmi: fix keyboard backlight detection X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=af965e973276b015d1b7d9ee78ed8d8df9d6bc98;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git asus-wmi: fix keyboard backlight detection 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 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)