'\" t .\" Title: pwm_apply_state .\" 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_APPLY_STATE" "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_apply_state \- atomically apply a new state to a PWM device .SH "SYNOPSIS" .HP \w'int\ pwm_apply_state('u .BI "int pwm_apply_state(struct\ pwm_device\ *\ " "pwm" ", struct\ pwm_state\ *\ " "state" ");" .SH "ARGUMENTS" .PP \fIpwm\fR .RS 4 PWM device .RE .PP \fIstate\fR .RS 4 new state to apply\&. This can be adjusted by the PWM driver if the requested config is not achievable, for example, \->duty_cycle and \->period might be approximated\&. .RE .SH "COPYRIGHT" .br