Name

struct regulator_desc — Regulator descriptor

Synopsis

struct regulator_desc {
  const char * name;
  int id;
  unsigned n_voltages;
  struct regulator_ops * ops;
  int irq;
  enum regulator_type type;
  struct module * owner;
};  

Members

name

Identifying name for the regulator.

id

Numerical identifier for the regulator.

n_voltages

Number of selectors available for ops.list_voltage.

ops

Regulator operations table.

irq

Interrupt number for the regulator.

type

Indicates if the regulator is a voltage or current regulator.

owner

Module providing the regulator, used for refcounting.

Description

Each regulator registered with the core is described with a structure of this type.