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

Commit 2ffb260d 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-qg: Skip reading battery-temp in the resume path"

parents 0547436e 1318a174
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -3442,7 +3442,7 @@ static int process_resume(struct qpnp_qg *chip)
{
	u8 status2 = 0, rt_status = 0;
	u32 ocv_uv = 0, ocv_raw = 0;
	int rc, batt_temp = 0;
	int rc;

	/* skip if profile is not loaded */
	if (!chip->profile_loaded)
@@ -3460,11 +3460,6 @@ static int process_resume(struct qpnp_qg *chip)
			pr_err("Failed to read good_ocv, rc=%d\n", rc);
			return rc;
		}
		rc = qg_get_battery_temp(chip, &batt_temp);
		if (rc < 0) {
			pr_err("Failed to read BATT_TEMP, rc=%d\n", rc);
			return rc;
		}

		 /* Clear suspend data as there has been a GOOD OCV */
		memset(&chip->kdata, 0, sizeof(chip->kdata));