Scroll to navigation

DEVM_PWM_GET(9) Pulse-Width Modulation (PWM) DEVM_PWM_GET(9)

NAME

devm_pwm_get - resource managed pwm_get

SYNOPSIS

struct pwm_device * devm_pwm_get(struct device * dev, const char * con_id);

ARGUMENTS

dev

device for PWM consumer

con_id

consumer name

DESCRIPTION

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

RETURN

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

COPYRIGHT

January 2017 Kernel Hackers Manual 4.8.