[ARM] pxa/saar: set default WLED output current
authorHaojian Zhuang <haojian.zhuang@marvell.com>
Thu, 5 Nov 2009 15:31:01 +0000 (10:31 -0500)
committerEric Miao <eric.y.miao@gmail.com>
Tue, 1 Dec 2009 01:02:35 +0000 (09:02 +0800)
Set default WLED output current in saar. Otherwise, LCD backlight won't be
effective.

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
arch/arm/mach-pxa/saar.c

index 8241a63..de58863 100644 (file)
@@ -451,10 +451,15 @@ static inline void saar_init_lcd(void) {}
 #endif
 
 #if defined(CONFIG_I2C_PXA) || defined(CONFIG_I2C_PXA_MODULE)
+static struct da9034_backlight_pdata saar_da9034_backlight = {
+       .output_current = 4,    /* 4mA */
+};
+
 static struct da903x_subdev_info saar_da9034_subdevs[] = {
        [0] = {
                .name           = "da903x-backlight",
                .id             = DA9034_ID_WLED,
+               .platform_data  = &saar_da9034_backlight,
        },
 };