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

NAME

6       regulator_get_exclusive - obtain exclusive access to a regulator.
7

SYNOPSIS

9       struct regulator * regulator_get_exclusive(struct device * dev,
10                                                  const char * id);
11

ARGUMENTS

13       dev
14           device for regulator “consumer”
15
16       id
17           Supply name or regulator ID.
18

DESCRIPTION

20       Returns a struct regulator corresponding to the regulator producer, or
21       IS_ERR condition containing errno. Other consumers will be unable to
22       obtain this reference is held and the use count for the regulator will
23       be initialised to reflect the current state of the regulator.
24
25       This is intended for use by consumers which cannot tolerate shared use
26       of the regulator such as those which need to force the regulator off
27       for correct operation of the hardware they are controlling.
28
29       Use of supply names configured via regulator_set_device_supply is
30       strongly encouraged. It is recommended that the supply name used should
31       match the name used for the supply and/or the relevant device pins in
32       the datasheet.
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.         June 2019           REGULATOR_GET_EXCLUS(9)
Impressum