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

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

Merge "power: smb1360: Do not configure BAT_ID fail configuration"

parents 75823ca4 ddb626a4
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -3858,9 +3858,8 @@ static int smb1360_hw_init(struct smb1360_chip *chip)

	/* batt-id configuration */
	if (chip->batt_id_disabled) {
		mask = BATT_ID_ENABLED_BIT | CHG_BATT_ID_FAIL
				| BATT_ID_FAIL_SELECT_PROFILE;
		reg = CHG_BATT_ID_FAIL | BATT_ID_FAIL_SELECT_PROFILE;
		mask = BATT_ID_ENABLED_BIT | CHG_BATT_ID_FAIL;
		reg = CHG_BATT_ID_FAIL;
		rc = smb1360_masked_write(chip, CFG_FG_BATT_CTRL_REG,
						mask, reg);
		if (rc < 0) {