summaryrefslogtreecommitdiff
path: root/include/linux/power
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2013-07-03 15:11:07 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:33:50 -0700
commitd510ded64b428f0a1be84f9345b49f8d4bcc15f9 (patch)
treeaa7ed808536384c492fac0557b2f87b78ec9e02a /include/linux/power
parent014f199cb4f8b15eabe724bd0cdc846c367b17c5 (diff)
power: battery-charger: add API to acquire/release wakelock
This is require to avoid system suspend when charging is in progress with high current. In this case, it is is require to acquire wakelocks. Add APIs on battery charger framework to acquire/release the suspend. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/244697 (cherry picked from commit bd928b9098917e5d8716e291d663e34e37f5cd5b) Change-Id: Ia24e65cfd37dc22aace9d41a3ad593816155645a Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/253368 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'include/linux/power')
-rw-r--r--include/linux/power/battery-charger-gauge-comm.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/power/battery-charger-gauge-comm.h b/include/linux/power/battery-charger-gauge-comm.h
index 95791b54afb2..be8f28157f91 100644
--- a/include/linux/power/battery-charger-gauge-comm.h
+++ b/include/linux/power/battery-charger-gauge-comm.h
@@ -66,9 +66,11 @@ int battery_charging_status_update(struct battery_charger_dev *bc_dev,
enum battery_charger_status status);
int battery_charging_restart(struct battery_charger_dev *bc_dev, int after_sec);
int battery_charger_thermal_start_monitoring(
- struct battery_charger_dev *bct_dev);
+ struct battery_charger_dev *bc_dev);
int battery_charger_thermal_stop_monitoring(
- struct battery_charger_dev *bct_dev);
+ struct battery_charger_dev *bc_dev);
+int battery_charger_acquire_wake_lock(struct battery_charger_dev *bc_dev);
+int battery_charger_release_wake_lock(struct battery_charger_dev *bc_dev);
int battery_gauge_get_battery_temperature(struct battery_gauge_dev *bg_dev,
int *temp);