pwm_apply_state — atomically apply a new state to a PWM device
int pwm_apply_state (
)
pwm
PWM device
state
new state to apply. This can be adjusted by the PWM driver if the requested config is not achievable, for example, ->duty_cycle and ->period might be approximated.