diff options
author | Richard A. Smith <richard@laptop.org> | 2012-07-15 17:43:51 -0400 |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-07-16 04:39:23 -0400 |
commit | ecc2edd56c49fa31a0a9ed15a7bf810ae79d3b85 (patch) | |
tree | 32d34f4d59462094ea4b531e3967eaa7f0203a9c | |
parent | 5619d0ba97cd336a100121cf8f2968c4b1f6c848 (diff) |
olpc-battery: update CHARGE_FULL_DESIGN property for BYD LiFe batteries
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>
-rw-r--r-- | drivers/power/olpc_battery.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/power/olpc_battery.c b/drivers/power/olpc_battery.c index 1630add1a6de..55b10b813353 100644 --- a/drivers/power/olpc_battery.c +++ b/drivers/power/olpc_battery.c | |||
@@ -231,11 +231,9 @@ static int olpc_bat_get_charge_full_design(union power_supply_propval *val) | |||
231 | 231 | ||
232 | case POWER_SUPPLY_TECHNOLOGY_LiFe: | 232 | case POWER_SUPPLY_TECHNOLOGY_LiFe: |
233 | switch (mfr) { | 233 | switch (mfr) { |
234 | case 1: /* Gold Peak */ | 234 | case 1: /* Gold Peak, fall through */ |
235 | val->intval = 2800000; | ||
236 | break; | ||
237 | case 2: /* BYD */ | 235 | case 2: /* BYD */ |
238 | val->intval = 3100000; | 236 | val->intval = 2800000; |
239 | break; | 237 | break; |
240 | default: | 238 | default: |
241 | return -EIO; | 239 | return -EIO; |