"default-on" LED Trigger
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 2 Feb 2008 01:21:54 +0000 (01:21 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 2 Feb 2008 01:21:54 +0000 (01:21 +0000)
commit00158ccffeb42769725d61a9bc3bc4a5603c55bd
tree7c196bea27f26b6c17ffe726b9bf1b2b03fe9b12
parent0bf84185a31085ee12512035da0a86536b7f9b1b
"default-on" LED Trigger

The current LED subsystem always initialises LEDs in the OFF state. This is fine for most LEDs but some should be on right from boot (e.g. POWER LED). Following some discussion with the LED subsystem maintainers, a trigger was recommended as the best way to implement this functionality.

Here is a patch to add a new trigger "default-on" which will initialise an LED in the ON state. It is not compiled by default.

Particular thanks to Rod Whitby for all his help with this.

Signed-off-by: Nick Forbes <nick.forbes@incepta.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10348 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic-2.6/config-2.6.23
target/linux/generic-2.6/files/drivers/leds/ledtrig-default-on.c [new file with mode: 0644]
target/linux/generic-2.6/patches-2.6.23/402-ledtrig_default_on.patch [new file with mode: 0644]