regulator_set_voltage

Langue: en

Version: May 2009 (fedora - 06/07/09)

Section: 9 (Appels noyau Linux)

NAME

regulator_set_voltage - set regulator output voltage

SYNOPSIS

int regulator_set_voltage(struct regulator * regulator, int min_uV, int max_uV);

ARGUMENTS

regulator

regulator source

min_uV

Minimum required voltage in uV

max_uV

Maximum acceptable voltage in uV

DESCRIPTION

Sets a voltage regulator to the desired output voltage. This can be set during any regulator state. IOW, regulator can be disabled or enabled.

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.

NOTE

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.

AUTHORS

Liam Girdwood <lrg@slimlogic.co.uk>

Author.

Mark Brown <broonie@opensource.wolfsonmicro.com>
Wolfson Microelectronics,
      
     

Author.