Home
last modified time | relevance | path

Searched refs:SYSFS_PWM_MAX (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/hwmon/
H A Daxi-fan-control.c48 #define SYSFS_PWM_MAX 255 macro
115 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()