pwm_apply_state
The interface has the following parameters.
- Synopsis:
int pwm_apply_state(struct pwm_device *pwm, const struct pwm_state *state)
- Description: The interface is used to apply a new state to a PWM device atomically.
- Parameter:
- pwm: The PWM device to change status.
- state: The new state to apply to the PWM device.
- Return:
- Success: 0.
- Failure: Error code.