pwm_set_polarity(9) configure the polarity of a PWM signal

SYNOPSIS

int pwm_set_polarity(struct pwm_device * pwm, enum pwm_polarity polarity);

ARGUMENTS

pwm

PWM device

polarity

new polarity of the PWM signal

DESCRIPTION

Note that the polarity cannot be configured while the PWM device is enabled.

RETURNS

0 on success or a negative error code on failure.

COPYRIGHT