From 0b3031685d2d86069a9e02493b1d2ca4c99eb35c Mon Sep 17 00:00:00 2001 From: Carlos Corbacho Date: Thu, 31 Jan 2008 13:12:33 +0000 Subject: [PATCH] acer_acpi - Mask read value for mail LED on WMID Some laptops can return strange values (like 16 & 17) but we only care about the first bit. --- acer_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acer_acpi.c b/acer_acpi.c index dbafa4a..cd6715e 100644 --- a/acer_acpi.c +++ b/acer_acpi.c @@ -778,7 +778,7 @@ static acpi_status WMID_get_u32(u32 *value, u32 cap, struct Interface *iface) case ACER_CAP_MAILLED: if (quirks->mailled == 1) { ec_read(0x9f, &tmp); - *value = tmp; + *value = tmp & 0x01; return 0; } case ACER_CAP_TOUCHPAD_READ: -- 2.11.4.GIT