Searched refs:orig_max (Results 1 – 1 of 1) sorted by relevance
209 static long scale_pwm_value(long val, long orig_max, long new_max) in scale_pwm_value() argument218 return max(1L, DIV_ROUND_CLOSEST(min(val, orig_max) * new_max, orig_max)); in scale_pwm_value()