devm_of_pwm_get(9) resource managed of_pwm_get

SYNOPSIS

struct pwm_device * devm_of_pwm_get(struct device * dev, struct device_node * np, const char * con_id);

ARGUMENTS

dev

device for PWM consumer

np

device node to get the PWM from

con_id

consumer name

DESCRIPTION

This function performs like of_pwm_get but the acquired PWM device will automatically be released on driver detach.

RETURNS

A pointer to the requested PWM device or an ERR_PTR-encoded error code on failure.

COPYRIGHT