Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287593
b: refs/heads/master
c: 4d40365
h: refs/heads/master
i:
  287591: 240029f
v: v3
  • Loading branch information
Grazvydas Ignotas authored and Anton Vorontsov committed Feb 1, 2012
1 parent f77e2c1 commit 83fb20e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b7aaacf56ac9e0cdb58c3d087fea7084d897c307
refs/heads/master: 4d4036591b3de279a8c93a3cb010b0bc1264703c
2 changes: 1 addition & 1 deletion trunk/drivers/power/bq27x00_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ static void bq27x00_update(struct bq27x00_device_info *di)
struct bq27x00_reg_cache cache = {0, };
bool is_bq27500 = di->chip == BQ27500;

cache.flags = bq27x00_read(di, BQ27x00_REG_FLAGS, is_bq27500);
cache.flags = bq27x00_read(di, BQ27x00_REG_FLAGS, !is_bq27500);
if (cache.flags >= 0) {
if (!is_bq27500 && (cache.flags & BQ27000_FLAG_CI)) {
dev_info(di->dev, "battery is not calibrated! ignoring capacity values\n");
Expand Down

0 comments on commit 83fb20e

Please sign in to comment.