Skip to contentSkip to conversation

pxa: set default WLED output current in saar

PATCH New Haojian Zhuang 1 participant 1 message Nov 5, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pxa: set default WLED output current in saar

Set default WLED output current in saar. Otherwise, LCD backlight won't be effective.

---
 arch/arm/mach-pxa/saar.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
arch/arm/mach-pxa/saar.c +5 -0
index 8241a63..a16590a 100644
@@ -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 = {
+	.out_current	= DA9034_WLED_CURRENT(4),
+};
+
 static struct da903x_subdev_info saar_da9034_subdevs[] = {
 	[0] = {
 		.name		= "da903x-backlight",
 		.id		= DA9034_ID_WLED,
+		.platform_data	= &saar_da9034_backlight,
 	},
 };
 
Signature · 1 line
1.5.6.5