diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2008-04-12 20:17:02 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-04-19 11:29:08 +0100 |
commit | 311c736c19ec5d9cfc9518542aeee844c2bc7a86 (patch) | |
tree | 7a761be5d5cffdc0b55207fa7c817266aca8069d /arch/arm/mach-pxa | |
parent | d4e7d09f7accd1b0d1c8f149a44deffc8c141a46 (diff) | |
download | linux-311c736c19ec5d9cfc9518542aeee844c2bc7a86.tar.gz linux-311c736c19ec5d9cfc9518542aeee844c2bc7a86.tar.bz2 linux-311c736c19ec5d9cfc9518542aeee844c2bc7a86.zip |
[ARM] 4973/1: Tosa: use leds-gpio driver.
Now as the scoop pins are covered by the generic gpio API,
we can use leds-gpio driver instead of special leds-tosa.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa')
-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 = { /* * Tosa LEDs */ +struct gpio_led tosa_gpio_leds[] = { + { + .name = "tosa:amber:charge", + .default_trigger = "main-battery-charging", + .gpio = TOSA_GPIO_CHRG_ERR_LED, + }, + { + .name = "tosa:green:mail", + .default_trigger = "nand-disk", + .gpio = TOSA_GPIO_NOTE_LED, + }, +}; + +struct gpio_led_platform_data tosa_gpio_leds_platform_data = { + .leds = tosa_gpio_leds, + .num_leds = ARRAY_SIZE(tosa_gpio_leds), +}; + static struct platform_device tosaled_device = { - .name = "tosa-led", - .id = -1, + .name = "leds-gpio", + .id = -1, + .dev = { + .platform_data = &tosa_gpio_leds_platform_data, + }, }; static struct platform_device *devices[] __initdata = { |