summaryrefslogtreecommitdiff
path: root/include/linux/power
diff options
context:
space:
mode:
authorDarbha Sriharsha <dsriharsha@nvidia.com>2013-11-20 16:06:22 +0530
committerLaxman Dewangan <ldewangan@nvidia.com>2013-11-28 01:04:49 -0800
commit89888853a4548dced3c8bebc4fa0b66f15f7a351 (patch)
treeff75edd65594764f0ae6dc827fe29a111bbc9a4b /include/linux/power
parent1c9913b61e5337141ab44eba5ca5fda108fd5836 (diff)
power: charger_gauge_comm: Add API to enable broadcast mode
Some platforms facilitate the charging of battery by enabling broadcast mode on the respective fuel gauge chipset. Export an API to enable the battery charger driver to invoke the broadcast mode on the fuel gauge. Bug 1271064 Change-Id: I1bbacb605ada4992f0ce81ac7d1aa09153df0bd6 Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com> Reviewed-on: http://git-master/r/333380 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'include/linux/power')
-rw-r--r--include/linux/power/battery-charger-gauge-comm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/power/battery-charger-gauge-comm.h b/include/linux/power/battery-charger-gauge-comm.h
index c091f1e482ac..f102ddb9e580 100644
--- a/include/linux/power/battery-charger-gauge-comm.h
+++ b/include/linux/power/battery-charger-gauge-comm.h
@@ -36,6 +36,7 @@ struct battery_charger_dev;
struct battery_gauge_ops {
int (*update_battery_status)(struct battery_gauge_dev *bg_device,
enum battery_charger_status status);
+ int (*set_current_broadcast) (struct battery_gauge_dev *bg_device);
};
struct battery_charging_ops {
@@ -80,6 +81,7 @@ int battery_charging_system_power_on_usb_event(
struct battery_charger_dev *bc_dev);
int battery_gauge_get_battery_temperature(struct battery_gauge_dev *bg_dev,
int *temp);
+int battery_charger_set_current_broadcast(struct battery_charger_dev *bc_dev);
struct battery_gauge_dev *battery_gauge_register(struct device *dev,
struct battery_gauge_info *bgi, void *drv_data);
void battery_gauge_unregister(struct battery_gauge_dev *bg_dev);