Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mc13xxx.h File Reference
#include <linux/regulator/driver.h>

Go to the source code of this file.

Data Structures

struct  mc13xxx_regulator
 
struct  mc13xxx_regulator_priv
 

Macros

#define MC13xxx_DEFINE(prefix, _name, _reg, _vsel_reg, _voltages, _ops)
 
#define MC13xxx_FIXED_DEFINE(prefix, _name, _reg, _voltages, _ops)
 
#define MC13xxx_GPO_DEFINE(prefix, _name, _reg,_voltages, _ops)
 
#define MC13xxx_DEFINE_SW(_name, _reg, _vsel_reg, _voltages, ops)   MC13xxx_DEFINE(SW, _name, _reg, _vsel_reg, _voltages, ops)
 
#define MC13xxx_DEFINE_REGU(_name, _reg, _vsel_reg, _voltages, ops)   MC13xxx_DEFINE(REGU, _name, _reg, _vsel_reg, _voltages, ops)
 

Functions

int mc13xxx_fixed_regulator_set_voltage (struct regulator_dev *rdev, int min_uV, int max_uV, unsigned *selector)
 

Variables

struct regulator_ops mc13xxx_regulator_ops
 
struct regulator_ops mc13xxx_fixed_regulator_ops
 

Macro Definition Documentation

#define MC13xxx_DEFINE (   prefix,
  _name,
  _reg,
  _vsel_reg,
  _voltages,
  _ops 
)
Value:
[prefix ## _name] = { \
.desc = { \
.name = #_name, \
.n_voltages = ARRAY_SIZE(_voltages), \
.volt_table = _voltages, \
.ops = &_ops, \
.type = REGULATOR_VOLTAGE, \
.id = prefix ## _name, \
.owner = THIS_MODULE, \
}, \
.reg = prefix ## _reg, \
.enable_bit = prefix ## _reg ## _ ## _name ## EN, \
.vsel_reg = prefix ## _vsel_reg, \
.vsel_shift = prefix ## _vsel_reg ## _ ## _name ## VSEL,\
.vsel_mask = prefix ## _vsel_reg ## _ ## _name ## VSEL_M,\
}

Definition at line 60 of file mc13xxx.h.

#define MC13xxx_DEFINE_REGU (   _name,
  _reg,
  _vsel_reg,
  _voltages,
  ops 
)    MC13xxx_DEFINE(REGU, _name, _reg, _vsel_reg, _voltages, ops)

Definition at line 110 of file mc13xxx.h.

#define MC13xxx_DEFINE_SW (   _name,
  _reg,
  _vsel_reg,
  _voltages,
  ops 
)    MC13xxx_DEFINE(SW, _name, _reg, _vsel_reg, _voltages, ops)

Definition at line 108 of file mc13xxx.h.

#define MC13xxx_FIXED_DEFINE (   prefix,
  _name,
  _reg,
  _voltages,
  _ops 
)
Value:
[prefix ## _name] = { \
.desc = { \
.name = #_name, \
.n_voltages = ARRAY_SIZE(_voltages), \
.volt_table = _voltages, \
.ops = &_ops, \
.type = REGULATOR_VOLTAGE, \
.id = prefix ## _name, \
.owner = THIS_MODULE, \
}, \
.reg = prefix ## _reg, \
.enable_bit = prefix ## _reg ## _ ## _name ## EN, \
}

Definition at line 78 of file mc13xxx.h.

#define MC13xxx_GPO_DEFINE (   prefix,
  _name,
  _reg,
  _voltages,
  _ops 
)
Value:
[prefix ## _name] = { \
.desc = { \
.name = #_name, \
.n_voltages = ARRAY_SIZE(_voltages), \
.volt_table = _voltages, \
.ops = &_ops, \
.type = REGULATOR_VOLTAGE, \
.id = prefix ## _name, \
.owner = THIS_MODULE, \
}, \
.reg = prefix ## _reg, \
.enable_bit = prefix ## _reg ## _ ## _name ## EN, \
}

Definition at line 93 of file mc13xxx.h.

Function Documentation

int mc13xxx_fixed_regulator_set_voltage ( struct regulator_dev rdev,
int  min_uV,
int  max_uV,
unsigned *  selector 
)

Definition at line 137 of file mc13xxx-regulator-core.c.

Variable Documentation

struct regulator_ops mc13xxx_fixed_regulator_ops

Definition at line 155 of file mc13xxx-regulator-core.c.

struct regulator_ops mc13xxx_regulator_ops

Definition at line 127 of file mc13xxx-regulator-core.c.