1STRUCT REGULATOR_CON(9) API reference STRUCT REGULATOR_CON(9)
2
3
4
6 struct_regulator_config - Dynamic regulator descriptor
7
9 struct regulator_config {
10 struct device * dev;
11 const struct regulator_init_data * init_data;
12 void * driver_data;
13 struct device_node * of_node;
14 struct regmap * regmap;
15 int ena_gpio;
16 unsigned int ena_gpio_invert:1;
17 unsigned int ena_gpio_flags;
18 };
19
21 dev
22 struct device for the regulator
23
24 init_data
25 platform provided init data, passed through by driver
26
27 driver_data
28 private regulator data
29
30 of_node
31 OpenFirmware node to parse for device tree bindings (may be NULL).
32
33 regmap
34 regmap to use for core regmap helpers if dev_get_regulator is
35 insufficient.
36
37 ena_gpio
38 GPIO controlling regulator enable.
39
40 ena_gpio_invert
41 Sense for GPIO enable control.
42
43 ena_gpio_flags
44 Flags to use when calling gpio_request_one
45
47 Each regulator registered with the core is described with a structure
48 of this type and a struct regulator_desc. This structure contains the
49 runtime variable parts of the regulator description.
50
52 Liam Girdwood <lrg@slimlogic.co.uk>
53 Author.
54
55 Mark Brown <broonie@opensource.wolfsonmicro.com>
56 Wolfson Microelectronics,
57
58
59 Author.
60
62Kernel Hackers Manual 3.10 June 2019 STRUCT REGULATOR_CON(9)