]> Git Repo - linux.git/commitdiff
arch/x86/platform/geode/net5501.c: change active_low to 0 for LED driver
authorBjarke Istrup Pedersen <[email protected]>
Fri, 4 May 2012 21:01:45 +0000 (14:01 -0700)
committerH. Peter Anvin <[email protected]>
Fri, 4 May 2012 21:40:07 +0000 (14:40 -0700)
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 <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Cc: Philip Prindeville <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
arch/x86/platform/geode/net5501.c

index 66d377e334f7711d0d2c388afe485e52d932212d..646e3b5b4bb6af37766f0fa81625b7d7f876d4d2 100644 (file)
@@ -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,
        },
 };
 
This page took 0.049889 seconds and 4 git commands to generate.