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

Commit 3a8cad00 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: qpnp-bms: Improve logic for storing FCC learnt data"

parents f3485f01 3b37e737
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3095,8 +3095,10 @@ static int backup_new_fcc(struct qpnp_bms_chip *chip, int fcc_mah,
		min_cycle = chip->fcc_learning_samples[0].chargecycles;
		for (i = 1; i < chip->min_fcc_learning_samples; i++) {
			if (min_cycle >
				chip->fcc_learning_samples[i].chargecycles)
				chip->fcc_learning_samples[i].chargecycles) {
				pos = i;
				break;
			}
		}
	} else {
		/* find an empty location */