diff options
author | Darbha Sriharsha <dsriharsha@nvidia.com> | 2014-03-03 12:45:11 +0530 |
---|---|---|
committer | Darbha Sriharsha <dsriharsha@nvidia.com> | 2014-03-05 21:45:06 -0800 |
commit | 3b0028c7d9017bfc5a08f7a38b868f0e9eb566e7 (patch) | |
tree | 5b59ebd8db6957709c20377acb48f63ea5996668 /drivers/power | |
parent | 76094f06804a4fca1e0ad6c79e6a40baf14cf953 (diff) |
battery-charger-gauge-comm: Reduce the snapshot interval
Reduce the time interval after which capacity and voltage
snapshots are captured as such a large interval is not necessary
and large intervals cause delay in system boot time
Bug 1472698
Change-Id: Ia67c24b949e647872fcb05375b5461d05b84c3b4
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/376450
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/bq27441_battery.c | 2 | ||||
-rw-r--r-- | drivers/power/max17048_battery.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/power/bq27441_battery.c b/drivers/power/bq27441_battery.c index d688be394474..1cde0e4495b3 100644 --- a/drivers/power/bq27441_battery.c +++ b/drivers/power/bq27441_battery.c @@ -764,7 +764,7 @@ static int bq27441_probe(struct i2c_client *client, schedule_delayed_work(&chip->work, 0); battery_gauge_record_snapshot_values(chip->bg_dev, - jiffies_to_msecs(BQ27441_DELAY/2)); + jiffies_to_msecs(BATTERY_SNAPSHOT_INTERVAL)); return 0; bg_err: diff --git a/drivers/power/max17048_battery.c b/drivers/power/max17048_battery.c index 7c003b150f3d..36e31dd9e8d5 100644 --- a/drivers/power/max17048_battery.c +++ b/drivers/power/max17048_battery.c @@ -795,7 +795,8 @@ static int max17048_probe(struct i2c_client *client, schedule_delayed_work(&chip->work, 0); battery_gauge_record_snapshot_values(chip->bg_dev, - jiffies_to_msecs(MAX17048_DELAY/2)); + jiffies_to_msecs + (BATTERY_SNAPSHOT_INTERVAL)); if (client->irq) { ret = request_threaded_irq(client->irq, NULL, |