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

NAME

6       regulator_set_optimum_mode - set regulator optimum operating mode
7

SYNOPSIS

9       int regulator_set_optimum_mode(struct regulator * regulator,
10                                      int uA_load);
11

ARGUMENTS

13       regulator
14           regulator source
15
16       uA_load
17           load current
18

DESCRIPTION

20       Notifies the regulator core of a new device load. This is then used by
21       DRMS (if enabled by constraints) to set the most efficient regulator
22       operating mode for the new regulator loading.
23
24       Consumer devices notify their supply regulator of the maximum power
25       they will require (can be taken from device datasheet in the power
26       consumption tables) when they change operational status and hence power
27       state. Examples of operational state changes that can affect power
28

CONSUMPTION ARE

30       -
31
32       o Device is opened / closed. o Device I/O is about to begin or has just
33       finished. o Device is idling in between work.
34
35       This information is also exported via sysfs to userspace.
36
37       DRMS will sum the total requested load on the regulator and change to
38       the most efficient operating mode if platform constraints allow.
39
40       Returns the new regulator mode or error.
41

AUTHORS

43       Liam Girdwood <lrg@slimlogic.co.uk>
44           Author.
45
46       Mark Brown <broonie@opensource.wolfsonmicro.com>
47       Wolfson Microelectronics,
48
49
50           Author.
51
53Kernel Hackers Manual 3.10         June 2019           REGULATOR_SET_OPTIMU(9)
Impressum