- struct pwm_device * devm_pwm_get(struct device * dev, const char * con_id);
- device for PWM consumer
- consumer name
This function performs like pwm_get but the acquired PWM device will automatically be released on driver detach.
A pointer to the requested PWM device or an ERR_PTR-encoded error code on failure.