Skip to content

Commit

Permalink
olpc-battery: update CHARGE_FULL_DESIGN property for BYD LiFe batteries
Browse files Browse the repository at this point in the history
Reduce the mAh value for the BYD LiFe battery from 3100mAh to 2800mAh
to better reflect the average usable capacity as measured by olpc-pwr-log.

Signed-off-by: Richard A. Smith <richard@laptop.org>
Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
  • Loading branch information
Richard A. Smith authored and Anton Vorontsov committed Jul 16, 2012
1 parent 5619d0b commit ecc2edd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/power/olpc_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,9 @@ static int olpc_bat_get_charge_full_design(union power_supply_propval *val)

case POWER_SUPPLY_TECHNOLOGY_LiFe:
switch (mfr) {
case 1: /* Gold Peak */
val->intval = 2800000;
break;
case 1: /* Gold Peak, fall through */
case 2: /* BYD */
val->intval = 3100000;
val->intval = 2800000;
break;
default:
return -EIO;
Expand Down

0 comments on commit ecc2edd

Please sign in to comment.