'\" t .\" Title: regulator_bulk_get .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: API reference .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "REGULATOR_BULK_GET" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "API reference" .\" ----------------------------------------------------------------- .\" * 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" regulator_bulk_get \- get multiple regulator consumers .SH "SYNOPSIS" .HP \w'int\ regulator_bulk_get('u .BI "int regulator_bulk_get(struct\ device\ *\ " "dev" ", int\ " "num_consumers" ", struct\ regulator_bulk_data\ *\ " "consumers" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 Device to supply .RE .PP \fInum_consumers\fR .RS 4 Number of consumers to register .RE .PP \fIconsumers\fR .RS 4 Configuration of consumers; clients are stored here\&. .RE .SH "DESCRIPTION" .PP \fIreturn\fR 0 on success, an errno on failure\&. .PP This helper function allows drivers to get several regulator consumers in one operation\&. If any of the regulators cannot be acquired then any regulators that were allocated will be freed before returning to the caller\&. .SH "AUTHORS" .PP \fBLiam Girdwood\fR <\&lrg@slimlogic.co.uk\&> .RS 4 Author. .RE .PP \fBMark Brown\fR <\&broonie@opensource.wolfsonmicro.com\&> .br Wolfson Microelectronics, .RS 4 Author. .RE .SH "COPYRIGHT" .br