'\" t .\" Title: regulator_set_voltage .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: API reference .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "REGULATOR_SET_VOLTAG" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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_set_voltage \- set regulator output voltage .SH "SYNOPSIS" .HP \w'int\ regulator_set_voltage('u .BI "int regulator_set_voltage(struct\ regulator\ *\ " "regulator" ", int\ " "min_uV" ", int\ " "max_uV" ");" .SH "ARGUMENTS" .PP \fIregulator\fR .RS 4 regulator source .RE .PP \fImin_uV\fR .RS 4 Minimum required voltage in uV .RE .PP \fImax_uV\fR .RS 4 Maximum acceptable voltage in uV .RE .SH "DESCRIPTION" .PP Sets a voltage regulator to the desired output voltage\&. This can be set during any regulator state\&. IOW, regulator can be disabled or enabled\&. .PP If the regulator is enabled then the voltage will change to the new value immediately otherwise if the regulator is disabled the regulator will output at the new voltage when enabled\&. .SH "NOTE" .PP If the regulator is shared between several devices then the lowest request voltage that meets the system constraints will be used\&. Regulator system constraints must be set for this regulator before calling this function otherwise this call will fail\&. .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