From: andrzej zaborowski Date: Tue, 5 Sep 2006 15:00:26 +0000 (+0300) Subject: [PATCH] ARM: OMAP: Register LCD backlight on PalmTE X-Git-Tag: v2.6.18-omap1~88^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1cb34dd29d7183e3a7dac27aacfe665965cced80;p=linux-2.6-omap-h63xx.git [PATCH] ARM: OMAP: Register LCD backlight on PalmTE Add the backlight device to the list of platform devices to register on the Palm Tungsten E board. In the same way the device can be added in other board files if a board has a single LCD with the backlight controlled by OMAP PWL module. Signed-off-by: Andrzej Zaborowski Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap1/board-palmte.c b/arch/arm/mach-omap1/board-palmte.c index 4bc8a62909b..bc43aaf72d4 100644 --- a/arch/arm/mach-omap1/board-palmte.c +++ b/arch/arm/mach-omap1/board-palmte.c @@ -43,8 +43,21 @@ static struct platform_device palmte_lcd_device = { .id = -1, }; +static struct omap_backlight_config palmte_backlight_config = { + .default_intensity = 0xa0, +}; + +static struct platform_device palmte_backlight_device = { + .name = "omap-bl", + .id = -1, + .dev = { + .platform_data = &palmte_backlight_config, + }, +}; + static struct platform_device *devices[] __initdata = { &palmte_lcd_device, + &palmte_backlight_device, }; static struct omap_usb_config palmte_usb_config __initdata = {