aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/spitz.c
diff options
context:
space:
mode:
authorEric Miao <eric.miao@marvell.com>2008-09-05 10:38:23 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-09-23 17:04:40 -0400
commit4fe3224fffc56b13fe54e0fa479b64db83d8b125 (patch)
treeed989603ae04dbe9e61350ab5c8ef3cfee171095 /arch/arm/mach-pxa/spitz.c
parentfff147208b48680cb7b627a144113a6585828a0e (diff)
[ARM] pxa/spitz: use leds-gpio for led driving and drop leds-spitz
Now as the scoop pins are covered by the generic gpio API, we can use leds-gpio driver instead of special leds-spitz Drop leds-spitz.c and the declarations of now un-referenced spitzscoop_device, spitzscoop2_device. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Cc: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Eric Miao <eric.miao@marvell.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/spitz.c')
-rw-r--r--arch/arm/mach-pxa/spitz.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c
index 290008296e1b..993a132ff978 100644
--- a/arch/arm/mach-pxa/spitz.c
+++ b/arch/arm/mach-pxa/spitz.c
@@ -20,6 +20,7 @@
20#include <linux/fs.h> 20#include <linux/fs.h>
21#include <linux/interrupt.h> 21#include <linux/interrupt.h>
22#include <linux/gpio.h> 22#include <linux/gpio.h>
23#include <linux/leds.h>
23#include <linux/mmc/host.h> 24#include <linux/mmc/host.h>
24#include <linux/pm.h> 25#include <linux/pm.h>
25#include <linux/backlight.h> 26#include <linux/backlight.h>
@@ -255,9 +256,30 @@ static struct platform_device spitzkbd_device = {
255/* 256/*
256 * Spitz LEDs 257 * Spitz LEDs
257 */ 258 */
259static struct gpio_led spitz_gpio_leds[] = {
260 {
261 .name = "spitz:amber:charge",
262 .default_trigger = "sharpsl-charge",
263 .gpio = SPITZ_GPIO_LED_ORANGE,
264 },
265 {
266 .name = "spitz:green:hddactivity",
267 .default_trigger = "ide-disk",
268 .gpio = SPITZ_GPIO_LED_GREEN,
269 },
270};
271
272static struct gpio_led_platform_data spitz_gpio_leds_info = {
273 .leds = spitz_gpio_leds,
274 .num_leds = ARRAY_SIZE(spitz_gpio_leds),
275};
276
258static struct platform_device spitzled_device = { 277static struct platform_device spitzled_device = {
259 .name = "spitz-led", 278 .name = "leds-gpio",
260 .id = -1, 279 .id = -1,
280 .dev = {
281 .platform_data = &spitz_gpio_leds_info,
282 },
261}; 283};
262 284
263#if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MODULE) 285#if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MODULE)