diff options
Diffstat (limited to 'arch/arm/mach-pxa/tosa.c')
-rw-r--r-- | arch/arm/mach-pxa/tosa.c | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 49b5b83c0e4c..af1cce31c746 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa/tosa.c | |||
@@ -421,9 +421,30 @@ static struct platform_device tosa_gpio_keys_device = { | |||
421 | /* | 421 | /* |
422 | * Tosa LEDs | 422 | * Tosa LEDs |
423 | */ | 423 | */ |
424 | struct gpio_led tosa_gpio_leds[] = { | ||
425 | { | ||
426 | .name = "tosa:amber:charge", | ||
427 | .default_trigger = "main-battery-charging", | ||
428 | .gpio = TOSA_GPIO_CHRG_ERR_LED, | ||
429 | }, | ||
430 | { | ||
431 | .name = "tosa:green:mail", | ||
432 | .default_trigger = "nand-disk", | ||
433 | .gpio = TOSA_GPIO_NOTE_LED, | ||
434 | }, | ||
435 | }; | ||
436 | |||
437 | struct gpio_led_platform_data tosa_gpio_leds_platform_data = { | ||
438 | .leds = tosa_gpio_leds, | ||
439 | .num_leds = ARRAY_SIZE(tosa_gpio_leds), | ||
440 | }; | ||
441 | |||
424 | static struct platform_device tosaled_device = { | 442 | static struct platform_device tosaled_device = { |
425 | .name = "tosa-led", | 443 | .name = "leds-gpio", |
426 | .id = -1, | 444 | .id = -1, |
445 | .dev = { | ||
446 | .platform_data = &tosa_gpio_leds_platform_data, | ||
447 | }, | ||
427 | }; | 448 | }; |
428 | 449 | ||
429 | static struct platform_device *devices[] __initdata = { | 450 | static struct platform_device *devices[] __initdata = { |