---
name: "struct_regulator_config"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/struct_regulator_config"
---

# struct\_regulator\_config(9)

Dynamic regulator descriptor

## NAME

struct\_regulator\_config - Dynamic regulator descriptor

## SYNOPSIS

```
struct regulator_config {
  struct device * dev;
  const struct regulator_init_data * init_data;
  void * driver_data;
  struct device_node * of_node;
  struct regmap * regmap;
  bool ena_gpio_initialized;
  int ena_gpio;
  unsigned int ena_gpio_invert:1;
  unsigned int ena_gpio_flags;
};
```

## MEMBERS

dev

struct device for the regulator

init\_data

platform provided init data, passed through by driver

driver\_data

private regulator data

of\_node

OpenFirmware node to parse for device tree bindings (may be NULL).

regmap

regmap to use for core regmap helpers if **dev\_get\_regmap** is insufficient.

ena\_gpio\_initialized

GPIO controlling regulator enable was properly initialized, meaning that \>= 0 is a valid gpio identifier and \< 0 is a non existent gpio.

ena\_gpio

GPIO controlling regulator enable.

ena\_gpio\_invert

Sense for GPIO enable control.

ena\_gpio\_flags

Flags to use when calling **gpio\_request\_one**

## DESCRIPTION

Each regulator registered with the core is described with a structure of this type and a struct regulator\_desc. This structure contains the runtime variable parts of the regulator description.

## AUTHORS

**Liam Girdwood** \<lrg@slimlogic.co.uk\>

Author.

**Mark Brown** \<broonie@opensource.wolfsonmicro.com\>\
 Wolfson Microelectronics,

Author.

## COPYRIGHT
