Home
last modified time | relevance | path

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

/linux/drivers/iio/adc/
H A Dad7606.c579 struct pwm_state cnvst_pwm_state; in ad7606_pwm_set_high() local
582 pwm_get_state(st->cnvst_pwm, &cnvst_pwm_state); in ad7606_pwm_set_high()
583 cnvst_pwm_state.enabled = true; in ad7606_pwm_set_high()
584 cnvst_pwm_state.duty_cycle = cnvst_pwm_state.period; in ad7606_pwm_set_high()
586 ret = pwm_apply_might_sleep(st->cnvst_pwm, &cnvst_pwm_state); in ad7606_pwm_set_high()
593 struct pwm_state cnvst_pwm_state; in ad7606_pwm_set_low() local
596 pwm_get_state(st->cnvst_pwm, &cnvst_pwm_state); in ad7606_pwm_set_low()
597 cnvst_pwm_state.enabled = true; in ad7606_pwm_set_low()
598 cnvst_pwm_state.duty_cycle = 0; in ad7606_pwm_set_low()
600 ret = pwm_apply_might_sleep(st->cnvst_pwm, &cnvst_pwm_state); in ad7606_pwm_set_low()
[all …]