]> git.karo-electronics.de Git - karo-tx-linux.git/commit
arch/x86/platform/geode/net5501.c: change active_low to 0 for LED driver
authorBjarke Istrup Pedersen <gurligebis@gentoo.org>
Thu, 3 May 2012 05:43:11 +0000 (15:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:12 +0000 (15:46 +1000)
commit2d8cb03a28d0b42042a9a3503d1f27001f7ccc96
treed19ce7c43e60c2323f6c732008b0bb171ad3985c
parentd623b650637f54780f4afa794d4e0dd88168b405
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 <gurligebis@gentoo.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Philip Prindeville <philipp@redfish-solutions.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/platform/geode/net5501.c