Lines Matching refs:uc_pdata
23 struct dm_regulator_uclass_platdata *uc_pdata; in fixed_regulator_ofdata_to_platdata() local
30 uc_pdata = dev_get_uclass_platdata(dev); in fixed_regulator_ofdata_to_platdata()
31 if (!uc_pdata) in fixed_regulator_ofdata_to_platdata()
35 uc_pdata->type = REGULATOR_TYPE_FIXED; in fixed_regulator_ofdata_to_platdata()
59 struct dm_regulator_uclass_platdata *uc_pdata; in fixed_regulator_get_value() local
61 uc_pdata = dev_get_uclass_platdata(dev); in fixed_regulator_get_value()
62 if (!uc_pdata) in fixed_regulator_get_value()
65 if (uc_pdata->min_uV != uc_pdata->max_uV) { in fixed_regulator_get_value()
66 debug("Invalid constraints for: %s\n", uc_pdata->name); in fixed_regulator_get_value()
70 return uc_pdata->min_uV; in fixed_regulator_get_value()
75 struct dm_regulator_uclass_platdata *uc_pdata; in fixed_regulator_get_current() local
77 uc_pdata = dev_get_uclass_platdata(dev); in fixed_regulator_get_current()
78 if (!uc_pdata) in fixed_regulator_get_current()
81 if (uc_pdata->min_uA != uc_pdata->max_uA) { in fixed_regulator_get_current()
82 debug("Invalid constraints for: %s\n", uc_pdata->name); in fixed_regulator_get_current()
86 return uc_pdata->min_uA; in fixed_regulator_get_current()