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

Commit 7febe376 authored by Fenglin Wu's avatar Fenglin Wu
Browse files

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



Change the CPR debug message level from error to debug if filling the
OPP table failed. This is to avoid logging the error messages on the
platforms which do not have pm_opp enabled.

Change-Id: I430ae7a38ae41ade8e7b94346f6fda77e8f5cb9c
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent 2d3171d7
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;
}