Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/pwm/
Dpwm-atmel-tcb.c76 struct atmel_tcb_pwm_device *tcbpwm = tcbpwmc->pwms[pwm->hwpwm]; in atmel_tcb_pwm_set_polarity() local
78 tcbpwm->polarity = polarity; in atmel_tcb_pwm_set_polarity()
87 struct atmel_tcb_pwm_device *tcbpwm; in atmel_tcb_pwm_request() local
91 tcbpwm = devm_kzalloc(chip->dev, sizeof(*tcbpwm), GFP_KERNEL); in atmel_tcb_pwm_request()
92 if (!tcbpwm) in atmel_tcb_pwm_request()
97 devm_kfree(chip->dev, 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()
104 tcbpwm->div = 0; in atmel_tcb_pwm_request()
[all …]