/* Returns the regulator object for the requested regulator.  */
Regulator & pmu_get_regulator(pmu_regulators_t regulator)
/* Returns the regulator object for the requested regulator.  */
Regulator & pmu_get_regulator(pmu_regulators_t regulator)
{
    switch (regulator)
    {
        case kPMURegulator_1p1:
            return s_pmu.ldo1p1;
        case kPMURegulator_2p5:
            return s_pmu.ldo2p5;
        case kPMURegulator_3p0:
            return s_pmu.ldo3p0;
        case kPMURegulator_ArmCore:
            return s_pmu.ldoArm;
        case kPMURegulator_Graphics:
            return s_pmu.ldoGraphics;
        case kPMURegulator_SoC:
            return s_pmu.ldoSoC;
        default:
            return s_pmu.ldo1p1;
    }
}