Lines Matching refs:lim_uV
57 static int max597x_set_vp(struct regulator_dev *rdev, int lim_uV, int severity,
83 /* reg = ADC_MASK * (lim_uV / 1000000) / (data->mon_rng / 1000000) */
84 reg = ADC_MASK * lim_uV / data->mon_rng;
99 static int max597x_set_uvp(struct regulator_dev *rdev, int lim_uV, int severity,
108 if ((lim_uV && !enable) || (!lim_uV && enable))
115 return max597x_set_vp(rdev, lim_uV, severity, enable, false);
118 static int max597x_set_ovp(struct regulator_dev *rdev, int lim_uV, int severity,
127 if ((lim_uV && !enable) || (!lim_uV && enable))
134 return max597x_set_vp(rdev, lim_uV, severity, enable, true);