ARM: tegra: cardhu: pass ac present interrupt and gpio to bq27x00
[linux-2.6.git] / arch / arm / mach-tegra / board-cardhu-sensors.c
index d352158..d00fe90 100644 (file)
@@ -46,7 +46,7 @@
 #include "board.h"
 #include <linux/mpu.h>
 #include <media/sh532u.h>
-
+#include <linux/bq27x00.h>
 #include <mach/gpio.h>
 #include <mach/edp.h>
 
@@ -455,10 +455,15 @@ static struct nct1008_platform_data cardhu_nct1008_pdata = {
        .alarm_fn = tegra_throttling_enable,
 };
 
+static struct bq27x00_platform_data cardhu_bq27510_pdata = {
+       .ac_persent_gpio = AC_PRESENT_GPIO,
+};
+
 static struct i2c_board_info cardhu_i2c4_bq27510_board_info[] = {
        {
                I2C_BOARD_INFO("bq27510", 0x55),
-               .irq = AC_PRESENT_GPIO,
+               .irq = AC_PRESENT_INT,
+               .platform_data = &cardhu_bq27510_pdata,
        },
 };