board-qi_lb60: Fix battery platform data.
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 7 Feb 2010 12:10:00 +0000 (12:10 +0000)
committerLars-Peter Clausen <lars@metafoo.de>
Sun, 7 Feb 2010 12:10:00 +0000 (12:10 +0000)
SVN-Revision: 19541

target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c

index 643f9c838356530d98c09957ba7039f2dbf94f05..249d4c5fd5d2eed6f0bb582304967fb44a1a1f4d 100644 (file)
@@ -286,12 +286,15 @@ static struct spi_board_info qi_lb60_spi_board_info[] = {
 };
 
 /* Battery */
-static struct jz_batt_info qi_lb60_battery_pdata = {
-       .charg_stat_gpio  = GPIO_CHARG_STAT_N,
-
-       .min_voltag     = 3600000,
-       .max_voltag     = 4200000,
-       .batt_tech      = POWER_SUPPLY_TECHNOLOGY_LIPO,
+static struct jz_battery_platform_data qi_lb60_battery_pdata = {
+       .gpio_charge = GPIO_CHARG_STAT_N,
+       .gpio_charge_active_low = 1,
+       .info = {
+               .name = "battery",
+               .technology = POWER_SUPPLY_TECHNOLOGY_LIPO,
+               .voltage_max_design = 4200000,
+               .voltage_min_design = 3600000,
+       },
 };
 
 static char *qi_lb60_batteries[] = {