Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ecc2edd5 authored by Richard A. Smith's avatar Richard A. Smith Committed by Anton Vorontsov
Browse files

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: default avatarRichard A. Smith <richard@laptop.org>
Signed-off-by: default avatarDaniel Drake <dsd@laptop.org>
Signed-off-by: default avatarAnton Vorontsov <anton.vorontsov@linaro.org>
parent 5619d0ba
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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;