ARM: tegra: pluto/dalmore: do not pass callback for battery status update
Laxman Dewangan [Wed, 19 Jun 2013 07:41:34 +0000 (12:41 +0530)]
The battery charger driver used on Pluto and Dalmore are communicating
to gauge driver through battery-charger-gauge communication and hence
no need to pass the callback APIs through platform data.

Removing the callbacks initialisation.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/240068
(cherry picked from commit fbc45a6b7f49787d862d7698662afac1132347c4)

Change-Id: Ia36fb384938df2a9adcd14fe5c2a739eb7a07e66
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/253347
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

arch/arm/mach-tegra/board-dalmore-power.c
arch/arm/mach-tegra/board-pluto-sensors.c

index c5cc4ec..b207eef 100644 (file)
@@ -168,7 +168,6 @@ TPS65090_PDATA_INIT(FET7, fet7, tps65090_rails(DCDC2), 0, 0, 0, false, -1, 0);
 
 static struct tps65090_charger_data bcharger_pdata = {
        .irq_base = TPS65090_TEGRA_IRQ_BASE,
-       .update_status = sbs_update,
 };
 
 #define ADD_TPS65090_REG(_name) (&tps65090_regulator_pdata_##_name)
index d7496d6..466b405 100644 (file)
@@ -194,7 +194,6 @@ static struct max77665_charger_plat_data max77665_charger = {
        .num_cables = MAX_CABLES,
        .cables = maxim_cable,
        .extcon_name = "tegra-udc",
-       .update_status = max17042_update_status,
        .is_battery_present = false, /* false as default */
        .consumer_supplies = max77665_charger_supply,
        .num_consumer_supplies = ARRAY_SIZE(max77665_charger_supply),