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

NAME

6       regulator_get - lookup and obtain a reference to a regulator.
7

SYNOPSIS

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

ARGUMENTS

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

DESCRIPTION

19       Returns a struct regulator corresponding to the regulator producer, or
20       IS_ERR condition containing errno.
21
22       Use of supply names configured via regulator_set_device_supply is
23       strongly encouraged. It is recommended that the supply name used should
24       match the name used for the supply and/or the relevant device pins in
25       the datasheet.
26

AUTHORS

28       Liam Girdwood <lrg@slimlogic.co.uk>
29           Author.
30
31       Mark Brown <broonie@opensource.wolfsonmicro.com>
32       Wolfson Microelectronics,
33
34
35           Author.
36
38Kernel Hackers Manual 2.6.         June 2019                  REGULATOR_GET(9)
Impressum