Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/pwm/
Dpwm-atmel-tcb.c75 struct atmel_tcb_pwm_device *tcbpwm = pwm_get_chip_data(pwm); in atmel_tcb_pwm_set_polarity() local
77 tcbpwm->polarity = polarity; in atmel_tcb_pwm_set_polarity()
86 struct atmel_tcb_pwm_device *tcbpwm; in atmel_tcb_pwm_request() local
90 tcbpwm = devm_kzalloc(chip->dev, sizeof(*tcbpwm), GFP_KERNEL); in atmel_tcb_pwm_request()
91 if (!tcbpwm) in atmel_tcb_pwm_request()
96 devm_kfree(chip->dev, tcbpwm); in atmel_tcb_pwm_request()
100 pwm_set_chip_data(pwm, tcbpwm); in atmel_tcb_pwm_request()
101 tcbpwm->polarity = PWM_POLARITY_NORMAL; in atmel_tcb_pwm_request()
102 tcbpwm->duty = 0; in atmel_tcb_pwm_request()
103 tcbpwm->period = 0; in atmel_tcb_pwm_request()
[all …]