Searched refs:SYSFS_PWM_MAX (Results 1 – 1 of 1) sorted by relevance
48 #define SYSFS_PWM_MAX 255 macro115 return DIV_ROUND_CLOSEST(pwm_width * SYSFS_PWM_MAX, pwm_period); in axi_fan_control_get_pwm_duty()123 long __val = clamp_val(val, 0, SYSFS_PWM_MAX); in axi_fan_control_set_pwm_duty()125 new_width = DIV_ROUND_CLOSEST(__val * pwm_period, SYSFS_PWM_MAX); in axi_fan_control_set_pwm_duty()