regulator: cpr3-regulator: cap max_uV in LDO regulator set_voltage() calls
Currently, the maximum voltage specified in regulator_set_voltage() calls
for CPUSS regulators correspond to the last known aggregated ceiling
voltage. However, this voltage may be higher than what the LDO can actually
supply. In those cases, cap the voltage to the maximum physically supported
LDO voltage. This effectively prevents the regulator framework from
performing unnecessary set_voltage() calls for LDO regulators whose max_uV
voltages are limited by machine-specific constraints.
Change-Id: Iacc9abf22234b9fda8ec8e2f10fa270cab165e6a
Signed-off-by:
Osvaldo Banuelos <osvaldob@codeaurora.org>
Loading
Please register or sign in to comment