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

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

Merge "regulator: cpr-regulator: change CPR debug message level for OPP table"

parents e9ac1032 7febe376
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -1772,14 +1772,17 @@ static int cpr_limit_open_loop_voltage(struct cpr_regulator *cpr_vreg)
static int cpr_populate_opp_table(struct cpr_regulator *cpr_vreg,
				struct device *dev)
{
	int i, rc;
	int i, rc = 0;

	for (i = CPR_CORNER_MIN; i <= cpr_vreg->num_corners; i++) {
		rc = dev_pm_opp_add(dev, i, cpr_vreg->open_loop_volt[i]);
		rc |= dev_pm_opp_add(dev, i, cpr_vreg->open_loop_volt[i]);
		if (rc)
			cpr_err(cpr_vreg, "could not add OPP entry <%d, %d>, rc=%d\n",
			cpr_debug(cpr_vreg, "could not add OPP entry <%d, %d>, rc=%d\n",
				i, cpr_vreg->open_loop_volt[i], rc);
	}
	if (rc)
		cpr_err(cpr_vreg, "adding OPP entry failed - OPP may not be enabled, rc=%d\n",
				rc);

	return 0;
}