Searched refs:duty_scale (Results 1 – 1 of 1) sorted by relevance
40 unsigned int duty_scale; member49 unsigned int duty_scale) in iqs620_pwm_init() argument54 if (!duty_scale) in iqs620_pwm_init()59 duty_scale - 1); in iqs620_pwm_init()72 unsigned int duty_scale; in iqs620_pwm_apply() local96 duty_scale = duty_cycle * 256 / IQS620_PWM_PERIOD_NS; in iqs620_pwm_apply()99 duty_scale = 0; in iqs620_pwm_apply()103 ret = iqs620_pwm_init(iqs620_pwm, duty_scale); in iqs620_pwm_apply()105 iqs620_pwm->duty_scale = duty_scale; in iqs620_pwm_apply()127 state->enabled = iqs620_pwm->duty_scale > 0; in iqs620_pwm_get_state()[all …]