]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
leds: Add leds-wrap default-trigger
authorSven Wegener <sven.wegener@stealer.net>
Mon, 13 Oct 2008 09:43:47 +0000 (10:43 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 20 Oct 2008 21:36:03 +0000 (22:36 +0100)
The power led is normally lit after boot, let's use the default-on
trigger as the default trigger for it.  This gets the initial brightness
value right and being on is the default behaviour we expect for a power
led.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/leds/leds-wrap.c

index 7ac61a7b56ad9b5d62a035f05f530a567c5deacb..2f3aa87f2a1f60d86ab7c7d4ada902462c992ed2 100644 (file)
@@ -53,8 +53,9 @@ static void wrap_extra_led_set(struct led_classdev *led_cdev,
 }
 
 static struct led_classdev wrap_power_led = {
-       .name           = "wrap::power",
-       .brightness_set = wrap_power_led_set,
+       .name                   = "wrap::power",
+       .brightness_set         = wrap_power_led_set,
+       .default_trigger        = "default-on",
 };
 
 static struct led_classdev wrap_error_led = {