[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 12 Dec 2007 15:21:43 -0700
From: Stephen Hemminger <shemminger@...ux-foundation.org>
To: "Dmitry Torokhov" <dmitry.torokhov@...il.com>
Cc: "Pavel Machek" <pavel@....cz>, "Len Brown" <lenb@...nel.org>,
"Andrew Morton" <akpm@...ux-foundation.org>,
linux-input@...ey.karlin.mff.cuni.cz, linux-kernel@...r.kernel.org
Subject: [PATCH] Fujitsu application panel led value
Use proper encoding for LED values.
Signed-off-by: Stephen Hemminger <shemminger@...ux-foundation.org>
---
Note: earlier code worked because hardware only checks for zero.
--- a/drivers/input/misc/apanel.c 2007-12-12 13:07:03.000000000 -0700
+++ b/drivers/input/misc/apanel.c 2007-12-12 14:42:09.000000000 -0700
@@ -132,11 +132,11 @@ static void mail_led_set(struct led_clas
enum led_brightness value)
{
struct apanel *ap = container_of(led, struct apanel, mail_led);
- if (value)
+
+ if (value != LED_OFF)
ap->led_bits |= 0x8000;
else
ap->led_bits &= ~0x8000;
- ap->led_bits = value;
schedule_work(&ap->led_work);
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists