Lines Matching refs:min_uV
44 unsigned int min_uV;
61 unsigned range_uV = max1586->max_uV - max1586->min_uV;
63 return max1586->min_uV + (selector * range_uV / MAX1586_V3_MAX_VSEL);
66 static int max1586_v3_set(struct regulator_dev *rdev, int min_uV, int max_uV)
70 unsigned range_uV = max1586->max_uV - max1586->min_uV;
74 if (min_uV > max1586->max_uV || max_uV < max1586->min_uV)
76 if (min_uV < max1586->min_uV)
77 min_uV = max1586->min_uV;
79 selector = ((min_uV - max1586->min_uV) * MAX1586_V3_MAX_VSEL +
113 static int max1586_v6_set(struct regulator_dev *rdev, int min_uV, int max_uV)
119 if (min_uV < MAX1586_V6_MIN_UV || min_uV > MAX1586_V6_MAX_UV)
124 if (min_uV < 1800000)
126 else if (min_uV < 2500000)
128 else if (min_uV < 3000000)
130 else if (min_uV >= 3000000)
203 max1586->min_uV = MAX1586_V3_MIN_UV / 1000 * pdata->v3_gain / 1000;