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

NAME

6       regulator_set_current_limit - set regulator output current limit
7

SYNOPSIS

9       int regulator_set_current_limit(struct regulator * regulator,
10                                       int min_uA, int max_uA);
11

ARGUMENTS

13       regulator
14           regulator source
15
16       min_uA
17           Minimuum supported current in uA
18
19       max_uA
20           Maximum supported current in uA
21

DESCRIPTION

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

NOTE

31       Regulator system constraints must be set for this regulator before
32       calling this function otherwise this call will fail.
33

AUTHORS

35       Liam Girdwood <lrg@slimlogic.co.uk>
36           Author.
37
38       Mark Brown <broonie@opensource.wolfsonmicro.com>
39       Wolfson Microelectronics,
40
41
42           Author.
43
45Kernel Hackers Manual 2.6.       November 2011         REGULATOR_SET_CURREN(9)
Impressum