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

Commit 007342a2 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: Update GOOD_OCV after clearing the old data"

parents 8ae54f6b 90b3842e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3460,10 +3460,10 @@ static int process_resume(struct qpnp_qg *chip)
			return rc;
		}

		chip->kdata.param[QG_GOOD_OCV_UV].data = ocv_uv;
		chip->kdata.param[QG_GOOD_OCV_UV].valid = true;
		 /* Clear suspend data as there has been a GOOD OCV */
		memset(&chip->kdata, 0, sizeof(chip->kdata));
		chip->kdata.param[QG_GOOD_OCV_UV].data = ocv_uv;
		chip->kdata.param[QG_GOOD_OCV_UV].valid = true;
		chip->suspend_data = false;

		qg_dbg(chip, QG_DEBUG_PM, "GOOD OCV @ resume good_ocv=%d uV\n",