1REGULATOR_SET_VOLTAG(9)          API reference         REGULATOR_SET_VOLTAG(9)
2
3
4

NAME

6       regulator_set_voltage - set regulator output voltage
7

SYNOPSIS

9       int regulator_set_voltage(struct regulator * regulator, int min_uV,
10                                 int max_uV);
11

ARGUMENTS

13       regulator
14           regulator source
15
16       min_uV
17           Minimum required voltage in uV
18
19       max_uV
20           Maximum acceptable voltage in uV
21

DESCRIPTION

23       Sets a voltage regulator to the desired output voltage. This can be set
24       during any regulator state. IOW, regulator can be disabled or enabled.
25
26       If the regulator is enabled then the voltage will change to the new
27       value immediately otherwise if the regulator is disabled the regulator
28       will output at the new voltage when enabled.
29

NOTE

31       If the regulator is shared between several devices then the lowest
32       request voltage that meets the system constraints will be used.
33       Regulator system constraints must be set for this regulator before
34       calling this function otherwise this call will fail.
35

AUTHORS

37       Liam Girdwood <lrg@slimlogic.co.uk>
38           Author.
39
40       Mark Brown <broonie@opensource.wolfsonmicro.com>
41       Wolfson Microelectronics,
42
43
44           Author.
45
47Kernel Hackers Manual 2.6.         June 2019           REGULATOR_SET_VOLTAG(9)
Impressum