Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pcap-regulator.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/mfd/ezx-pcap.h>

Go to the source code of this file.

Data Structures

struct  pcap_regulator
 

Macros

#define V8_table   V4_table
 
#define VAUX2_table   VAUX1_table
 
#define SW2_table   SW1_table
 
#define NA   0xff
 
#define VREG_INFO(_vreg, _reg, _en, _index, _stby, _lowpwr)
 
#define VREG(_vreg)
 

Functions

 subsys_initcall (pcap_regulator_init)
 
 module_exit (pcap_regulator_exit)
 
 MODULE_AUTHOR ("Daniel Ribeiro <[email protected]>")
 
 MODULE_DESCRIPTION ("PCAP2 Regulator Driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define NA   0xff

Definition at line 105 of file pcap-regulator.c.

#define SW2_table   SW1_table

Definition at line 91 of file pcap-regulator.c.

#define V8_table   V4_table

Definition at line 49 of file pcap-regulator.c.

#define VAUX2_table   VAUX1_table

Definition at line 63 of file pcap-regulator.c.

#define VREG (   _vreg)
Value:
[_vreg] = { \
.name = #_vreg, \
.id = _vreg, \
.n_voltages = ARRAY_SIZE(_vreg##_table), \
.volt_table = _vreg##_table, \
.ops = &pcap_regulator_ops, \
.type = REGULATOR_VOLTAGE, \
.owner = THIS_MODULE, \
}

Definition at line 222 of file pcap-regulator.c.

#define VREG_INFO (   _vreg,
  _reg,
  _en,
  _index,
  _stby,
  _lowpwr 
)
Value:
[_vreg] = { \
.reg = _reg, \
.en = _en, \
.index = _index, \
.stby = _stby, \
.lowpwr = _lowpwr, \
}

Definition at line 107 of file pcap-regulator.c.

Function Documentation

MODULE_AUTHOR ( "Daniel Ribeiro <[email protected]>"  )
MODULE_DESCRIPTION ( "PCAP2 Regulator Driver"  )
module_exit ( pcap_regulator_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( pcap_regulator_init  )