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

Commit a7e005d8 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: fix coulomb counter selection"

parents 8c516c95 1444a8ea
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1483,7 +1483,7 @@ static int get_prop_bms_charge_counter(struct qpnp_bms_chip *chip)

	mutex_lock(&chip->bms_output_lock);
	lock_output_data(chip);
	read_cc_raw(chip, &cc_raw, false);
	read_cc_raw(chip, &cc_raw, CC);
	unlock_output_data(chip);
	mutex_unlock(&chip->bms_output_lock);

@@ -1497,7 +1497,7 @@ static int get_prop_bms_charge_counter_shadow(struct qpnp_bms_chip *chip)

	mutex_lock(&chip->bms_output_lock);
	lock_output_data(chip);
	read_cc_raw(chip, &cc_raw, true);
	read_cc_raw(chip, &cc_raw, SHDW_CC);
	unlock_output_data(chip);
	mutex_unlock(&chip->bms_output_lock);