From: Bjarke Istrup Pedersen Date: Wed, 25 Apr 2012 01:03:10 +0000 (+1000) Subject: arch/x86/platform/geode/net5501.c: change active_low to 0 for LED driver X-Git-Tag: next-20120430~2^2~207 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3d656299df9146f8d6dcaf66cd19e2f5d5f6ad8d;p=karo-tx-linux.git arch/x86/platform/geode/net5501.c: change active_low to 0 for LED driver It seems that there was an error with the active_low = 1 for the LED, since it should be set to 0 (meaning that active is high, since 0 is false, hence the confusion. The wiki article about it confuses it, since it contradicts itself, regarding what turns on the LED. I have tested 3.4-rc2 on my net5501 with this patch, and it makes the LED behave correctly, where "none" turns it off, and "default-on" turns it on, when echoed onto the trigger "file" in /sys/class/leds. Signed-off-by: Bjarke Istrup Pedersen Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Philip Prindeville Signed-off-by: Andrew Morton --- diff --git a/arch/x86/platform/geode/net5501.c b/arch/x86/platform/geode/net5501.c index 66d377e334f7..646e3b5b4bb6 100644 --- a/arch/x86/platform/geode/net5501.c +++ b/arch/x86/platform/geode/net5501.c @@ -63,7 +63,7 @@ static struct gpio_led net5501_leds[] = { .name = "net5501:1", .gpio = 6, .default_trigger = "default-on", - .active_low = 1, + .active_low = 0, }, };