summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorImre Sunyi <imre.sunyi@sonymobile.com>2014-09-04 09:33:02 +0200
committerImre Sunyi <imre.sunyi@sonymobile.com>2014-09-05 08:25:16 +0000
commite368cf37567c1c6c79b0be3361f3568109e40d97 (patch)
tree2afa5d874827a25e874161b8cbe3933827c21ef2
parent520d0d83cf9d2f030125aaa364ce64ce6529ec9c (diff)
downloadbcm-e368cf37567c1c6c79b0be3361f3568109e40d97.tar.gz
power: bcmpmu-fg.c: At init capacity set correct charging state
If you have detected a valid charger type and USB charging is enabled and you have a charging current set then you are charging. Before the logic set this to discharging. Change-Id: Idac1d9ecd707cda49a250482483a4e9d5be7dc84
-rw-r--r--drivers/power/bcmpmu-fg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/bcmpmu-fg.c b/drivers/power/bcmpmu-fg.c
index 097f91b4474..8ef2edf0a3d 100644
--- a/drivers/power/bcmpmu-fg.c
+++ b/drivers/power/bcmpmu-fg.c
@@ -2943,7 +2943,7 @@ static void bcmpmu_fg_periodic_work(struct work_struct *work)
__func__, chrgr_type);
if ((chrgr_type > PMU_CHRGR_TYPE_NONE &&
chrgr_type < PMU_CHRGR_TYPE_MAX) &&
- !bcmpmu_is_usb_host_enabled(fg->bcmpmu) &&
+ bcmpmu_is_usb_host_enabled(fg->bcmpmu) &&
bcmpmu_get_icc_fc(fg->bcmpmu)) {
fg->flags.prev_batt_status =