Lines Matching refs:supply
45 struct regulator *supply; member
193 static int scpsys_regulator_enable(struct regulator *supply) in scpsys_regulator_enable() argument
195 return supply ? regulator_enable(supply) : 0; in scpsys_regulator_enable()
198 static int scpsys_regulator_disable(struct regulator *supply) in scpsys_regulator_disable() argument
200 return supply ? regulator_disable(supply) : 0; in scpsys_regulator_disable()
210 ret = scpsys_regulator_enable(pd->supply); in scpsys_power_on()
253 scpsys_regulator_disable(pd->supply); in scpsys_power_on()
289 scpsys_regulator_disable(pd->supply); in scpsys_power_off()
342 pd->supply = devm_regulator_get(scpsys->dev, "domain"); in scpsys_add_one_domain()
344 if (IS_ERR(pd->supply)) { in scpsys_add_one_domain()
345 dev_err_probe(scpsys->dev, PTR_ERR(pd->supply), in scpsys_add_one_domain()
348 return ERR_CAST(pd->supply); in scpsys_add_one_domain()