Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283427
b: refs/heads/master
c: cf7a8c0
h: refs/heads/master
i:
  283425: 6fc456a
  283423: 2747263
v: v3
  • Loading branch information
MyungJoo Ham authored and Anton Vorontsov committed Aug 19, 2011
1 parent f006a0b commit f390eaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 91d8b0d6f81d2946962ee559090a34834dfd467b
refs/heads/master: cf7a8c03db792894f436db5f3ffc44d947b9b068
8 changes: 4 additions & 4 deletions trunk/drivers/power/max17042_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ static int max17042_get_property(struct power_supply *psy,
val->intval *= 10000; /* Units of LSB = 10mV */
break;
case POWER_SUPPLY_PROP_VOLTAGE_NOW:
val->intval = max17042_read_reg(chip->client,
MAX17042_VCELL) * 83; /* 1000 / 12 = 83 */
val->intval = max17042_read_reg(chip->client, MAX17042_VCELL)
* 625 / 8;
break;
case POWER_SUPPLY_PROP_VOLTAGE_AVG:
val->intval = max17042_read_reg(chip->client,
MAX17042_AvgVCELL) * 83;
val->intval = max17042_read_reg(chip->client, MAX17042_AvgVCELL)
* 625 / 8;
break;
case POWER_SUPPLY_PROP_CAPACITY:
val->intval = max17042_read_reg(chip->client,
Expand Down

0 comments on commit f390eaf

Please sign in to comment.