'\" t .\" Title: pwm_set_polarity .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Pulse-Width Modulation (PWM) .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "PWM_SET_POLARITY" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Pulse-Width Modulation (PWM)" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" pwm_set_polarity \- configure the polarity of a PWM signal .SH "SYNOPSIS" .HP \w'int\ pwm_set_polarity('u .BI "int pwm_set_polarity(struct\ pwm_device\ *\ " "pwm" ", enum\ pwm_polarity\ " "polarity" ");" .SH "ARGUMENTS" .PP \fIpwm\fR .RS 4 PWM device .RE .PP \fIpolarity\fR .RS 4 new polarity of the PWM signal .RE .SH "DESCRIPTION" .PP Note that the polarity cannot be configured while the PWM device is enabled\&. .SH "RETURN" .PP 0 on success or a negative error code on failure\&. .SH "COPYRIGHT" .br