'\" t .\" Title: pwm_request_from_chip .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Pulse-Width Modulation (PWM) .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "PWM_REQUEST_FROM_CHI" "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_request_from_chip \- request a PWM device relative to a PWM chip .SH "SYNOPSIS" .HP \w'struct\ pwm_device\ *\ pwm_request_from_chip('u .BI "struct pwm_device * pwm_request_from_chip(struct\ pwm_chip\ *\ " "chip" ", unsigned\ int\ " "index" ", const\ char\ *\ " "label" ");" .SH "ARGUMENTS" .PP \fIchip\fR .RS 4 PWM chip .RE .PP \fIindex\fR .RS 4 per\-chip index of the PWM to request .RE .PP \fIlabel\fR .RS 4 a literal description string of this PWM .RE .SH "RETURN" .PP A pointer to the PWM device at the given index of the given PWM chip\&. A negative error code is returned if the index is not valid for the specified PWM chip or if the PWM device cannot be requested\&. .SH "COPYRIGHT" .br