"default-on" LED Trigger
authorFelix Fietkau <nbd@openwrt.org>
Sat, 2 Feb 2008 01:21:54 +0000 (01:21 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 2 Feb 2008 01:21:54 +0000 (01:21 +0000)
commit2176f80aee6921304f0fdf7f11fcdbf6f171815d
tree7c196bea27f26b6c17ffe726b9bf1b2b03fe9b12
parent5b78514cebd9bae33ca498b3353c1016ad1f5b60
"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>
SVN-Revision: 10348
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]